Remove debugflags and boot0cfg. NanoBSD does not use either of these when upgrading.

This commit is contained in:
Scott Ullrich 2009-07-05 14:21:04 -04:00
parent f22c94e090
commit dfb5933ae5

View File

@ -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