Skip to content

Kernel upgrade failure because initramfs fallback is missing #35

@ShellCode33

Description

@ShellCode33

To anyone having a similar issue:

(13/24) Generating signed EFI boot files
Generating EFI images...
stat: cannot statx '/boot/initramfs-linux-hardened-fallback.img': No such file or directory
/usr/bin/arch-secure-boot: line 78: 5603254272 +  + section_alignment - (5603254272 + ) % section_alignment: arithmetic syntax error: operand expected (error token is ") % section_alignment")

This is caused by mkinitcpio not generating fallback images by default anymore (see v40 changelog).

The easiest fix is to simply enable back fallback images generation by editing /etc/mkinitcpio.d/*.preset and making sure the following entries are set:

PRESETS=('default', 'fallback')
...
fallback_image=...

Once you're done, just reinstall your kernels to trigger mkinitcpio as well as arch-secure-boot, for me it was:

sudo pacman -S linux-hardened linux-lts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions