summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pc-sysinstall/backend/functions-disk.sh
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pc-sysinstall/backend/functions-disk.sh')
-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