Fix BIOS bootcode upgrades

The post-upgrade script failed to stamp bootcode for legacy BIOS systems
due to a mistyped command.

Ticket: #79455
This commit is contained in:
Ryan Moeller
2019-03-07 10:35:34 -08:00
parent 449063b341
commit d799cfb87f
2 changed files with 2 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ post-upgrade =
if [ -c /dev/null ]; then
for disk in $(sysctl -n kern.disks); do
if gpart show ${disk} | grep -q freebsd-boot; then
gpart bootcode bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 /dev/${disk}
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 /dev/${disk}
elif sysctl -n machdep.bootmethod | fgrep -q "EFI" && gpart show ${disk} | grep -q efi; then
if mount -t msdosfs /dev/${disk}p1 /boot/efi; then
cp /boot/boot1.efi /boot/efi/efi/boot/BOOTx64.efi

View File

@@ -43,7 +43,7 @@ post-upgrade =
if [ -c /dev/null ]; then
for disk in $(sysctl -n kern.disks); do
if gpart show ${disk} | grep -q freebsd-boot; then
gpart bootcode bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 /dev/${disk}
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 /dev/${disk}
elif sysctl -n machdep.bootmethod | fgrep -q "EFI" && gpart show ${disk} | grep -q efi; then
if mount -t msdosfs /dev/${disk}p1 /boot/efi; then
cp /boot/boot1.efi /boot/efi/efi/boot/BOOTx64.efi