diff --git a/bsp-files/kickstarts/post_usb_controller.cfg b/bsp-files/kickstarts/post_usb_controller.cfg index 201208f3..0681ed08 100644 --- a/bsp-files/kickstarts/post_usb_controller.cfg +++ b/bsp-files/kickstarts/post_usb_controller.cfg @@ -82,3 +82,19 @@ INSTALL_UUID=`uuidgen` echo $INSTALL_UUID > /mnt/sysimage/www/pages/feed/rel-xxxPLATFORM_RELEASExxx/install_uuid echo "INSTALL_UUID=$INSTALL_UUID" >> /mnt/sysimage/etc/platform/platform.conf %end + +%post + +# This is a USB install, so set ONBOOT=yes for network devices. +# Doing this in the %post so we don't unintentionally setup a +# network device during the installation. +for f in /etc/sysconfig/network-scripts/ifcfg-*; do + if grep -q '^ONBOOT=' ${f}; then + sed -i 's/^ONBOOT=.*/ONBOOT=yes/' ${f} + else + echo "ONBOOT=yes" >> ${f} + fi +done + +%end +