mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
When we switched to the gpart backend, and provided selection between
MBR & GPT, the MBR full-disk init failed to stamp boot1, and results in a boot not found error. This patch fixes the issue. PR: 151990 Submitted by: Kris Moore
This commit is contained in:
parent
7c2bf852d7
commit
3015d92bc4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=215078
@ -646,8 +646,11 @@ init_mbr_full_disk()
|
||||
rc_halt "dd if=/dev/zero of=/dev/${_intDISK}s1 count=1024"
|
||||
|
||||
if [ "$_intBOOT" = "bsd" ] ; then
|
||||
echo_log "Stamping boot sector on ${_intDISK}"
|
||||
echo_log "Stamping boot0 on ${_intDISK}"
|
||||
rc_halt "gpart bootcode -b /boot/boot0 ${_intDISK}"
|
||||
else
|
||||
echo_log "Stamping boot1 on ${_intDISK}"
|
||||
rc_halt "gpart bootcode -b /boot/boot1 ${_intDISK}"
|
||||
fi
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user