mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Add bootcamp bootloader stamp
Submitted by: kmoore Obtained from: PC-BSD MFC after: 3 days Sponsored by: iXsystems
This commit is contained in:
parent
9e8bf03252
commit
1ad0b0d5fd
1 changed files with 4 additions and 0 deletions
|
|
@ -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'`
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue