Bug #15401
open
23.09.1 to 24.03b update fails EFI with ZFS mirror
Added by M Felden 7 months ago.
Updated 7 months ago.
Description
System is using Coreboot (EFI only) and has a ZFS mirror:
zpool status
pool: pfSense
state: ONLINE
status: Some supported and requested features are not enabled on the pool.
The pool can still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
the pool may no longer be accessible by software that does not support
the features. See zpool-features(7) for details.
scan: scrub repaired 0B in 00:00:48 with 0 errors on Fri Apr 12 21:21:48 2024
config:
NAME STATE READ WRITE CKSUM
pfSense ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ada0p4 ONLINE 0 0 0
nda0p4 ONLINE 0 0 0
```
Updating boot code...
/usr/local/sbin/../libexec/install-boot.sh -b auto -d /tmp/be_mount.Sv7x -f zfs -s gpt -u nda0
gpart bootcode -b /tmp/be_mount.Sv7x/boot/pmbr -p /tmp/be_mount.Sv7x/boot/gptzfsboot -i 2 nda0
partcode written to nda0p2
bootcode written to nda0
fstyp: /dev/nda0p1: filesystem not recognized
ESP /dev/nda0p1 mounted on /tmp/stand-test.h3r0xp
Copying loader.efi to /EFI/freebsd on ESP
efibootmgr: efi_get_variable: Bad address
Creating UEFI boot entry for FreeBSD
efibootmgr: efi_get_variable: Bad address
Failed to create new boot entry
Unable to update boot code on /dev/nda0
Unlocking package pkg...done.
Failed
```
Files
System is using Coreboot (EFI only) and has a ZFS mirror:
zpool status
pool: pfSense
state: ONLINE
status: Some supported and requested features are not enabled on the pool.
The pool can still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
the pool may no longer be accessible by software that does not support
the features. See zpool-features(7) for details.
scan: scrub repaired 0B in 00:00:48 with 0 errors on Fri Apr 12 21:21:48 2024
config:
NAME STATE READ WRITE CKSUM
pfSense ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ada0p4 ONLINE 0 0 0
nda0p4 ONLINE 0 0 0
From the install log things went well until:
Updating boot code...
/usr/local/sbin/../libexec/install-boot.sh -b auto -d /tmp/be_mount.Sv7x -f zfs -s gpt -u nda0
gpart bootcode -b /tmp/be_mount.Sv7x/boot/pmbr -p /tmp/be_mount.Sv7x/boot/gptzfsboot -i 2 nda0
partcode written to nda0p2
bootcode written to nda0
fstyp: /dev/nda0p1: filesystem not recognized
ESP /dev/nda0p1 mounted on /tmp/stand-test.h3r0xp
Copying loader.efi to /EFI/freebsd on ESP
efibootmgr: efi_get_variable: Bad address
Creating UEFI boot entry for FreeBSD
efibootmgr: efi_get_variable: Bad address
Failed to create new boot entry
Unable to update boot code on /dev/nda0
Unlocking package pkg...done.
Failed
24.03.r.20240416.0005 seems to resolve this.
Now still seeing "efibootmgr: efi_get_variable: Bad address" but it moves on and works.
my system is not EFI (XG7100) but have not been experiencing any issues with my mirrors updating along with bootcode
>>> Upgrading boot code...
System Configuration
Architecture: amd64
Boot Devices: /dev/ada1
/dev/ada2
Boot Method: bios
Filesystem: zfs
Platform: Netgate 7100
Updating boot code...
/usr/local/sbin/../libexec/install-boot.sh -b auto -d /tmp/be_mount.BxW0 -f zfs -s gpt -u ada2
gpart bootcode -b /tmp/be_mount.BxW0/boot/pmbr -p /tmp/be_mount.BxW0/boot/gptzfsboot -i 1 ada2
partcode written to ada2p1
bootcode written to ada2
No ESP partition found...skipping.
/usr/local/sbin/../libexec/install-boot.sh -b auto -d /tmp/be_mount.BxW0 -f zfs -s gpt -u ada1
gpart bootcode -b /tmp/be_mount.BxW0/boot/pmbr -p /tmp/be_mount.BxW0/boot/gptzfsboot -i 1 ada1
partcode written to ada1p1
bootcode written to ada1
No ESP partition found...skipping.
Also available in: Atom
PDF