From e280a0a60fed749f7d9b9a5046cfd3ab6984202c Mon Sep 17 00:00:00 2001 From: jpaetzel Date: Fri, 4 May 2012 15:39:41 +0000 Subject: Add bootcamp bootloader stamp Submitted by: kmoore Obtained from: PC-BSD MFC after: 3 days Sponsored by: iXsystems --- usr.sbin/pc-sysinstall/backend/functions-disk.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usr.sbin/pc-sysinstall') diff --git a/usr.sbin/pc-sysinstall/backend/functions-disk.sh b/usr.sbin/pc-sysinstall/backend/functions-disk.sh index 2dd2532..e96ffb9 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'` -- cgit v1.1