Date: Sat, 6 Nov 2010 18:27:43 GMT From: Kris Moore <kmoore@FreeBSD.org> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/151990: bin: usr.sbin/pc-sysinstall - Fix bug when booting MBR partitions and no boot-loader selected Message-ID: <201011061827.oA6IRhqR058396@www.freebsd.org> Resent-Message-ID: <201011061830.oA6IUA5F029506@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011061827.oA6IRhqR058396>