Package Details: zfsbootmenu 2.2.2-1

Git Clone URL: https://aur.archlinux.org/zfsbootmenu.git (read-only, click to copy)
Package Base: zfsbootmenu
Description: ZFS bootloader for root-on-ZFS systems
Upstream URL: https://github.com/zbm-dev/zfsbootmenu
Licenses: MIT
Submitter: gardar
Maintainer: gardar
Last Packager: gardar
Votes: 5
Popularity: 1.35
First Submitted: 2022-08-01 12:41 (UTC)
Last Updated: 2023-11-07 15:02 (UTC)

Latest Comments

Snowstorm64 commented on 2023-10-22 10:00 (UTC)

For what's worth, I have always managed to generate a working EFI image, even without the workaround in 2.2.1-2. My config.yaml:

Global:
  ManageImages: true
  BootMountPoint: /boot/efi
  DracutConfDir: /etc/zfsbootmenu/dracut.conf.d
  PreHooksDir: /etc/zfsbootmenu/generate-zbm.pre.d
  PostHooksDir: /etc/zfsbootmenu/generate-zbm.post.d
  InitCPIO: true
  InitCPIOConfig: /etc/zfsbootmenu/mkinitcpio.conf
Components:
  ImageDir: /boot/efi/EFI/zbm
  Versions: 3
  Enabled: false
  syslinux:
    Config: /boot/syslinux/syslinux.cfg
    Enabled: false
EFI:
  ImageDir: /boot/efi/EFI/zbm
  Versions: false
  Enabled: true
Kernel:
  CommandLine: ro quiet loglevel=0
  Path: /boot/vmlinuz-linux

gardar commented on 2023-10-22 03:45 (UTC) (edited on 2023-10-22 03:46 (UTC) by gardar)

zfsbootmenu v2.2.1 with initcpio does not generate a working EFI image out of the box on Arch, but to generate working image there are two options.

Adding the --uki flag to mkinitcpio like this:

Global:
  InitCPIOFlags: ['--uki /boot/esp/EFI/zbm/vmlinuz-linux.EFI']
Kernel:
  Prefix: dummy

Or using a non-archlinux EFI stub.

EFI:
  Stub: /usr/share/zfsbootmenu/stubs/linuxx64.efi.stub 

I've chosen to add the latter workaround to the package.
Further discussion on the subject can be found here: https://github.com/zbm-dev/zfsbootmenu/discussions/501

gardar commented on 2023-10-18 19:21 (UTC) (edited on 2023-10-19 02:15 (UTC) by gardar)

endre commented on 2023-09-16 00:03 (UTC)

Please add less as a dependency, or building an image with mkinitcpio will fail to build with a blatant ==> ERROR: file not found: '' message. This is suspected to behave like this because of this: https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio/-/blob/master/functions#L748

Shouldn't be needed from v2.2.1 onwards https://github.com/zbm-dev/zfsbootmenu/commit/bf207286269335b416278b37baa88229c27d9cfb

darkbasic commented on 2023-09-30 20:27 (UTC)

I've generated an EFI image following the istructions at https://wiki.archlinux.org/title/Install_Arch_Linux_on_ZFS#Generate_a_ZFSBootMenu_image but the resulting image does not boot. zfsbootmenu-efi-bin works but I need zfs-2.2 from zfs-dkms-rc. I've tried to add zfs to the MODULES at /etc/zfsbootmenu/mkinitcpio.conf but it didn't help. When launching the image there is are no error logs whatsoever, it just returns to the boot menu.

zfsbootmenu doesn't support pre-releases so zfsbootmenu v2.2.0 didn't support zfs-2.2 but v2.2.1 does. Do you still encounter this issue with v2.2.1?
EDIT: I seem to be facing the same issue, I've opened up a discussion here: https://github.com/zbm-dev/zfsbootmenu/discussions/501

darkbasic commented on 2023-09-30 20:27 (UTC)

I've generated an EFI image following the istructions at https://wiki.archlinux.org/title/Install_Arch_Linux_on_ZFS#Generate_a_ZFSBootMenu_image but the resulting image does not boot. zfsbootmenu-efi-bin works but I need zfs-2.2 from zfs-dkms-rc. I've tried to add zfs to the MODULES at /etc/zfsbootmenu/mkinitcpio.conf but it didn't help. When launching the image there is are no error logs whatsoever, it just returns to the boot menu.

endre commented on 2023-09-16 00:03 (UTC)

Please add less as a dependency, or building an image with mkinitcpio will fail to build with a blatant ==> ERROR: file not found: '' message.

This is suspected to behave like this because of this:

https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio/-/blob/master/functions#L748

gardar commented on 2022-09-05 23:53 (UTC)

@ReneHollander

Should be fixed now, thanks for the heads up.

ReneHollander commented on 2022-08-14 09:16 (UTC)

Reinstalling this package causes the user made config in /etc/zfsbootmenu/ to be overwritten. Can you configure backup for all the relevant files? (https://wiki.archlinux.org/title/PKGBUILD#backup)

Likely something like this: backup=(etc/zfsbootmenu/config.yaml etc/zfsbootmenu/mkinitcpio.conf etc/zfsbootmenu/dracut.conf.d/omit-drivers.conf)