You are not logged in.

#1 2024-05-09 22:22:12

GeneArch
Member
Registered: 2013-07-28
Posts: 104

sbctl 0.14 + error message from alpm hook

I noticed after today's sbctl update which installs

/usr/share/lib/alpm/zz-sbctl.hook

Every system without secure boot now generates error message when the hook is run:

Signing /boot/vmlinuz-linux
couldn't access /usr/share/secureboot/keys/db/db.pem: no such file or directory

Failing to sign without secure boot set up seems benign.

But, I wonder if we should  condition this on having keys before the hook runs 'sbctl --sign-all -g'?

Last edited by GeneArch (2024-05-09 22:34:39)

Offline

#2 2024-05-11 01:43:50

mikewouldknow
Member
Registered: 2020-05-13
Posts: 1

Re: sbctl 0.14 + error message from alpm hook

I am seeing the same error during a fresh installation when building a unified kernel image (UKI) at the stage in my install procedure just before rebooting with Secure Boot in setup mode on my motherboard. Immediately after the error, mkinitcpio succeeds in building the unsigned UKI, and allows me to reboot and run sbctl create-keys and enroll-keys.

Offline

#3 2024-05-14 19:05:48

GeneArch
Member
Registered: 2013-07-28
Posts: 104

Re: sbctl 0.14 + error message from alpm hook

Seems fix is on the way


Issue 311

Offline

#4 2024-05-21 08:24:24

maziar
Member
Registered: 2022-08-28
Posts: 58

Re: sbctl 0.14 + error message from alpm hook

but today : couldn't access /usr/share/secureboot/keys/db/db.pem: no now  after update
udo mkinitcpio -P                         
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
==> WARNING: Deprecated option 'ALL_microcode' found. Update '/etc/mkinitcpio.d/linux.preset' to use the 'microcode' hook instead.
  -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux.img
==> Starting build: '6.9.1-arch1-1'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
  -> Running build hook: [autodetect]
/usr/lib/initcpio/install/autodetect: line 11: declare: mkinitcpio_autodetect: readonly variable
  -> Running build hook: [keymap]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: 'qat_420xx'
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
==> Running post hooks
  -> Running post hook: [sbctl]
Signing /boot/vmlinuz-linux
couldn't access /usr/share/secureboot/keys/db/db.pem: no such file or directory
==> ERROR: '/usr/lib/initcpio/post/sbctl' failed with exit code 1
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
==> WARNING: Deprecated option 'ALL_microcode' found. Update '/etc/mkinitcpio.d/linux.preset' to use the 'microcode' hook instead.
  -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: '6.9.1-arch1-1'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
  -> Running build hook: [keymap]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'aic94xx'
==> WARNING: Possibly missing firmware for module: 'bfa'
==> WARNING: Possibly missing firmware for module: 'qed'
==> WARNING: Possibly missing firmware for module: 'qla1280'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'wd719x'
  -> Running build hook: [encrypt]
==> WARNING: Possibly missing firmware for module: 'qat_420xx'
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-fallback.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
==> Running post hooks
  -> Running post hook: [sbctl]
Signing /boot/vmlinuz-linux
couldn't access /usr/share/secureboot/keys/db/db.pem: no such file or directory
==> ERROR: '/usr/lib/initcpio/post/sbctl' failed with exit code 1

Offline

Board footer

Powered by FluxBB