[vbox-dev] [PATCH] Removed chroot comment in redhat_postinstall.sh

Timothy Tacker timothytacker+virtualbox at gmail.com
Sun Jul 19 07:48:22 GMT 2020


All Kickstart files for Red Hat distributions in the UnattendedTemplates
directory run the redhat_postinstall.sh script with --nochroot in the %post
section.

This includes the following files:
rhel3_ks.cfg
rhel4_ks.cfg
rhel5_ks.cfg
rhel67_ks.cfg
fedora_ks.cfg

Nonetheless, the redhat_postinstall.sh script includes the following
comment:
# Note! This script expects to be running chrooted (inside new sytem).

The patch below removes this comment. I'm licensing this patch under the
MIT license. Please review and consider integrating. Feedback is welcome.
Thanks!

Timothy Tacker


diff --git a/src/VBox/Main/UnattendedTemplates/redhat_postinstall.sh
b/src/VBox/Main/UnattendedTemplates/redhat_postinstall.sh
index 82f77590..4e23084c 100755
--- a/src/VBox/Main/UnattendedTemplates/redhat_postinstall.sh
+++ b/src/VBox/Main/UnattendedTemplates/redhat_postinstall.sh
@@ -2,8 +2,6 @@
 ## @file
 # Post installation script template for redhat- distros.
 #
-# Note! This script expects to be running chrooted (inside new sytem).
-#

 #
 # Copyright (C) 2017-2020 Oracle Corporation
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.virtualbox.org/pipermail/vbox-dev/attachments/20200719/9ce04e7d/attachment.html>


More information about the vbox-dev mailing list