Add bootcamp bootloader stamp

Submitted by:	kmoore
Obtained from:	PC-BSD
MFC after:	3 days
Sponsored by:	iXsystems
This commit is contained in:
Josh Paetzel 2012-05-04 15:39:41 +00:00
parent 9e8bf03252
commit 1ad0b0d5fd

View File

@ -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'`