misc/151990: bin: usr.sbin/pc-sysinstall - Fix bug when booting MBR
partitions and no boot-loader selected
Kris Moore
kmoore at FreeBSD.org
Sat Nov 6 18:30:11 UTC 2010
>Number: 151990
>Category: misc
>Synopsis: bin: usr.sbin/pc-sysinstall - Fix bug when booting MBR partitions and no boot-loader selected
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Nov 06 18:30:10 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Kris Moore
>Release: 9.0-Current
>Organization:
PC-BSD / iXsystems
>Environment:
9.0-Current
>Description:
When we switched to the gpart backend, and provided selection between MBR & GPT, the MBR full-disk init failed to stamp boot1, and results in a boot not found error. This patch fixes the issue.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
--- src.o/usr.sbin/pc-sysinstall/backend/functions-disk.sh 2010-11-05 12:05:57.066860900 -0400
+++ src/usr.sbin/pc-sysinstall/backend/functions-disk.sh 2010-11-06 14:15:26.462959357 -0400
@@ -646,8 +646,11 @@
rc_halt "dd if=/dev/zero of=/dev/${_intDISK}s1 count=1024"
if [ "$_intBOOT" = "bsd" ] ; then
- echo_log "Stamping boot sector on ${_intDISK}"
+ echo_log "Stamping boot0 on ${_intDISK}"
rc_halt "gpart bootcode -b /boot/boot0 ${_intDISK}"
+ else
+ echo_log "Stamping boot1 on ${_intDISK}"
+ rc_halt "gpart bootcode -b /boot/boot1 ${_intDISK}"
fi
}
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list