diff options
author | jpaetzel <jpaetzel@FreeBSD.org> | 2012-05-04 15:39:41 +0000 |
---|---|---|
committer | jpaetzel <jpaetzel@FreeBSD.org> | 2012-05-04 15:39:41 +0000 |
commit | e280a0a60fed749f7d9b9a5046cfd3ab6984202c (patch) | |
tree | 1433fd7affb96052edc5d726cefed7dada44594a /usr.sbin/pc-sysinstall | |
parent | d62d5e3c11401bb0cd88e259f245580f3cd5821c (diff) | |
download | FreeBSD-src-e280a0a60fed749f7d9b9a5046cfd3ab6984202c.zip FreeBSD-src-e280a0a60fed749f7d9b9a5046cfd3ab6984202c.tar.gz |
Add bootcamp bootloader stamp
Submitted by: kmoore
Obtained from: PC-BSD
MFC after: 3 days
Sponsored by: iXsystems
Diffstat (limited to 'usr.sbin/pc-sysinstall')
-rwxr-xr-x | usr.sbin/pc-sysinstall/backend/functions-disk.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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'` |