Revision e213b6fc
Added by Scott Ullrich about 16 years ago
etc/rc.firmware | ||
---|---|---|
215 | 215 |
echo "" >> /conf/upgrade_log.txt |
216 | 216 |
echo "NanoBSD upgrade starting" >> /conf/upgrade_log.txt |
217 | 217 |
echo "" >> /conf/upgrade_log.txt |
218 |
|
|
219 |
# Foot shooting is fun! - this might be too much. nanobsd does not need this. |
|
220 |
#echo "" >> /conf/upgrade_log.txt |
|
221 |
#echo "/sbin/sysctl kern.geom.debugflags=16" >> /conf/upgrade_log.txt |
|
222 |
#/sbin/sysctl kern.geom.debugflags=16 >> /conf/upgrade_log.txt 2>&1 |
|
223 | 218 |
|
224 | 219 |
# Remove TOFLASH and get ready for new flash image |
225 | 220 |
echo "" >> /conf/upgrade_log.txt |
... | ... | |
308 | 303 |
|
309 | 304 |
sync |
310 | 305 |
|
311 |
# Set active boot source - this might be too much. nanobsd does not need this. |
|
306 |
# Set active boot source - NanoBSD does not do this but otherwise we |
|
307 |
# end up with the wrong partition being active. |
|
312 | 308 |
echo "" >> /conf/upgrade_log.txt |
313 | 309 |
echo "/usr/sbin/boot0cfg -s ${SLICE} -v /dev/${BOOT_DRIVE}" >> /conf/upgrade_log.txt |
314 | 310 |
/usr/sbin/boot0cfg -s ${SLICE} -v /dev/${BOOT_DRIVE} >> /conf/upgrade_log.txt 2>&1 |
... | ... | |
339 | 335 |
# Trigger a package reinstallation on reobot |
340 | 336 |
touch /conf/needs_package_sync |
341 | 337 |
|
342 |
# Enough fun for now. - this might be too much. nanobsd does not need this. |
|
343 |
#echo "" >> /conf/upgrade_log.txt |
|
344 |
#echo "/sbin/sysctl kern.geom.debugflags=0" >> /conf/upgrade_log.txt |
|
345 |
#/sbin/sysctl kern.geom.debugflags=0 >> /conf/upgrade_log.txt 2>&1 |
|
346 |
|
|
347 | 338 |
# remount /cf ro |
348 | 339 |
/etc/rc.conf_mount_ro |
349 | 340 |
/bin/sync |
Also available in: Unified diff
Remove foot shooting code that was commented out. It is not necessary for this. Enhance a comment about why we need boot0cfg