From 78f19c32750589f1b5ec55f077c05532388d03c5 Mon Sep 17 00:00:00 2001 From: jpaetzel Date: Mon, 14 May 2012 15:20:39 +0000 Subject: [PATCH] MFC: 235008 Add bootcamp bootloader stamp. Submitted by: kmoore Obtained from: PC-BSD Sponsored by: iXsystems git-svn-id: svn://svn.freebsd.org/base/stable/9@235448 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- usr.sbin/pc-sysinstall/backend/functions-disk.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/usr.sbin/pc-sysinstall/backend/functions-disk.sh b/usr.sbin/pc-sysinstall/backend/functions-disk.sh index 3c9dfbd77..5bc9f73ed 100755 --- a/usr.sbin/pc-sysinstall/backend/functions-disk.sh +++ b/usr.sbin/pc-sysinstall/backend/functions-disk.sh @@ -766,6 +766,10 @@ run_gpart_gpt_part() # Init the MBR partition rc_halt "gpart create -s BSD ${DISK}p${slicenum}" + # Stamp the bootloader + sleep 4 + rc_halt "gpart bootcode -b /boot/boot ${DISK}p${slicenum}" + # Set the slice to the format we'll be using for gpart later slice=`echo "${1}:${3}:gptslice" | sed 's|/|-|g'` -- 2.45.0