Anomaly: gptzfsboot fail w/ unsupported feature "zstd_compress" aft hbsd-update as of 2022-MAR-17

24 views
Skip to first unread message

F N

unread,
Mar 17, 2022, 3:00:38 PM3/17/22
to HardenedBSD Users
Hi,

I'm a bit confused. After performing today (2022-MAR-17, UTC 1700) a hbsd-update and a pkg upgrade it looks like the following happens after reboot:

  01: GELI Passphrase for disk0p3:
  02: Calculating GELI Decryption key ...
  03: failed to read pad2 area of primary view
  04: ZFS: unsupported feature: org.freebsd:zstd_compress
  05: ZFS: pool zroot is not supported
  06: gptzfsboot: failed to mount default pool zroot
  07: FreeBSD/x86 boot
  ...
  08: boot: _

Message number 03 seems well known and considered harmless.

Message number 04/05 puzzles me a bit.
A zpool import performed from booting the latest memstick ISO showed that the ZFS pool itself is not set to zstd compression, it's lz4 instead.

Would it be a solution to just update the gptzfsboot code with "gpart bootcode ..." ?

Any clues about what might be done best in this situation will be highly appreciated. 

Thanks

Frank

Shawn Webb

unread,
Mar 17, 2022, 3:04:02 PM3/17/22
to F N, HardenedBSD Users
It does seem like you might need to update your bootloader. Depending
on your environment, you'll want to update with gptzfsboot (like you
mentioned (for BIOS setups)) and/or loader.efi on your ESP (for UEFI
booting).

Let me know how it goes.

Thanks,

--
Shawn Webb
Cofounder / Security Engineer
HardenedBSD

https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc
signature.asc

F N

unread,
Mar 17, 2022, 3:29:51 PM3/17/22
to HardenedBSD Users, Shawn Webb, HardenedBSD Users, F N
Hello Shawn,

Thank you for your answer.

the following steps where performed:

01: Boot from usb stick w/ latest HBSD memstick iso

02: Provide GELI passphrase for ZFS drive

03: Select Live CD in the boot menu

04: Perform password less root login into live system

05: Verify drive data

     # gpart show | less -S

     -> identify disk name -> e.g. ada0
     -> identify partition number assigned to freebsd-boot label -> e.g. 1

06: Execute the following cmd:

     # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0

07: # poweroff

The anomaly is now gone after starting again.

Thanks a lot for pointing in the right direction!

Frank
Reply all
Reply to author
Forward
0 new messages