summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorjpaetzel <jpaetzel@FreeBSD.org>2012-05-04 15:39:41 +0000
committerjpaetzel <jpaetzel@FreeBSD.org>2012-05-04 15:39:41 +0000
commite280a0a60fed749f7d9b9a5046cfd3ab6984202c (patch)
tree1433fd7affb96052edc5d726cefed7dada44594a /usr.sbin
parentd62d5e3c11401bb0cd88e259f245580f3cd5821c (diff)
downloadFreeBSD-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')
-rwxr-xr-xusr.sbin/pc-sysinstall/backend/functions-disk.sh4
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'`
OpenPOWER on IntegriCloud