1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=235008

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