From dfb5933ae540b0477639e8f80d74a7541d314ace Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 5 Jul 2009 14:21:04 -0400 Subject: [PATCH] Remove debugflags and boot0cfg. NanoBSD does not use either of these when upgrading. --- etc/rc.firmware | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/etc/rc.firmware b/etc/rc.firmware index 832a3cfe0e..b66bd64515 100755 --- a/etc/rc.firmware +++ b/etc/rc.firmware @@ -216,10 +216,10 @@ pfSenseNanoBSDupgrade) echo "NanoBSD upgrade starting" >> /conf/upgrade_log.txt echo "" >> /conf/upgrade_log.txt - # Foot shooting is fun! - echo "" >> /conf/upgrade_log.txt - echo "/sbin/sysctl kern.geom.debugflags=16" >> /conf/upgrade_log.txt - /sbin/sysctl kern.geom.debugflags=16 >> /conf/upgrade_log.txt 2>&1 + # Foot shooting is fun! - this might be too much. nanobsd does not need this. + #echo "" >> /conf/upgrade_log.txt + #echo "/sbin/sysctl kern.geom.debugflags=16" >> /conf/upgrade_log.txt + #/sbin/sysctl kern.geom.debugflags=16 >> /conf/upgrade_log.txt 2>&1 # Remove TOFLASH and get ready for new flash image echo "" >> /conf/upgrade_log.txt @@ -304,10 +304,10 @@ pfSenseNanoBSDupgrade) echo "gpart set -a active -i ${SLICE} ${BOOT_DRIVE}" >> /conf/upgrade_log.txt gpart set -a active -i ${SLICE} ${BOOT_DRIVE} - # Set active boot source - echo "" >> /conf/upgrade_log.txt - echo "/usr/sbin/boot0cfg -s ${SLICE} -v /dev/${BOOT_DRIVE}" >> /conf/upgrade_log.txt - /usr/sbin/boot0cfg -s ${SLICE} -v /dev/${BOOT_DRIVE} >> /conf/upgrade_log.txt 2>&1 + # Set active boot source - this might be too much. nanobsd does not need this. + #echo "" >> /conf/upgrade_log.txt + #echo "/usr/sbin/boot0cfg -s ${SLICE} -v /dev/${BOOT_DRIVE}" >> /conf/upgrade_log.txt + #/usr/sbin/boot0cfg -s ${SLICE} -v /dev/${BOOT_DRIVE} >> /conf/upgrade_log.txt 2>&1 # Grab a final look at fdisk echo "" >> /conf/upgrade_log.txt @@ -335,10 +335,10 @@ pfSenseNanoBSDupgrade) # Trigger a package reinstallation on reobot touch /conf/needs_package_sync - # Enough fun for now. - echo "" >> /conf/upgrade_log.txt - echo "/sbin/sysctl kern.geom.debugflags=0" >> /conf/upgrade_log.txt - /sbin/sysctl kern.geom.debugflags=0 >> /conf/upgrade_log.txt 2>&1 + # Enough fun for now. - this might be too much. nanobsd does not need this. + #echo "" >> /conf/upgrade_log.txt + #echo "/sbin/sysctl kern.geom.debugflags=0" >> /conf/upgrade_log.txt + #/sbin/sysctl kern.geom.debugflags=0 >> /conf/upgrade_log.txt 2>&1 # remount /cf ro /etc/rc.conf_mount_ro