summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pc-sysinstall
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2010-11-10 05:32:36 +0000
committerimp <imp@FreeBSD.org>2010-11-10 05:32:36 +0000
commit6071cd7e5f479b6de62e8d8b787410ecb166a1d8 (patch)
treea8ceb548f50d8aadfe733a93a6c252caf55aa002 /usr.sbin/pc-sysinstall
parentf01ec2a1c628b134a7096750203670f6d1b98b39 (diff)
downloadFreeBSD-src-6071cd7e5f479b6de62e8d8b787410ecb166a1d8.zip
FreeBSD-src-6071cd7e5f479b6de62e8d8b787410ecb166a1d8.tar.gz
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
Diffstat (limited to 'usr.sbin/pc-sysinstall')
-rwxr-xr-xusr.sbin/pc-sysinstall/backend/functions-disk.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/pc-sysinstall/backend/functions-disk.sh b/usr.sbin/pc-sysinstall/backend/functions-disk.sh
index c6e849c..0b14591 100755
--- a/usr.sbin/pc-sysinstall/backend/functions-disk.sh
+++ b/usr.sbin/pc-sysinstall/backend/functions-disk.sh
@@ -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
}
OpenPOWER on IntegriCloud