Date: Wed, 10 Nov 2010 05:32:36 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r215078 - head/usr.sbin/pc-sysinstall/backend Message-ID: <201011100532.oAA5WahA085566@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Wed Nov 10 05:32:36 2010 New Revision: 215078 URL: http://svn.freebsd.org/changeset/base/215078 Log: 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. PR: 151990 Submitted by: Kris Moore Modified: head/usr.sbin/pc-sysinstall/backend/functions-disk.sh Modified: head/usr.sbin/pc-sysinstall/backend/functions-disk.sh ============================================================================== --- head/usr.sbin/pc-sysinstall/backend/functions-disk.sh Wed Nov 10 05:22:12 2010 (r215077) +++ head/usr.sbin/pc-sysinstall/backend/functions-disk.sh Wed Nov 10 05:32:36 2010 (r215078) @@ -646,8 +646,11 @@ init_mbr_full_disk() 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 }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011100532.oAA5WahA085566>