A I have to run the latest Kernel on my Acer Swift 3 (SF314-42-R2UX) to make suspend work I downloaded Kernel 5.15.13-051513 form mainline repository an signed it following the instructions here: https://ubuntu.com/blog/how-to-sign-things-for-secure-boot
And this:
https://gloveboxes.github.io/Ubuntu-for-Azure-Developers/docs/signing-kernel-for-secure-boot.html
I had to sign it as the Bios does not support to boot unsigned Kernel. I manged to sign the Kernels and for some day I could boot normally. But out of the sudden I cant boot anymore, I get:
ALERT! /dev/disk/by-uuid/xxxxxxxxx does not exist. Dropping to a shell
initramfs:_
I can boot to the original Ubuntu Kernel 5.13.0-24 though.
Can anybody give me a hint, what is going wrong here?
[UPDATE:] I found out, that this error is caused by running update-initramfs
which is triggered by system updates. apt
gives me this error:
update-initramfs: Generating /boot/initrd.img-5.15.13-051513-generic.signed
W: missing /lib/modules/5.15.13-051513-generic.signed
W: Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/5.15.13-051513-generic.signed: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
cat: /var/tmp/mkinitramfs_3MmNVh/lib/modules/5.15.13-051513-generic.signed/modules.builtin: Datei oder Verzeichnis nicht gefunden
W: Can't find modules.builtin.modinfo (for locating built-in drivers' firmware, supported in Linux >=5.2)
depmod: WARNING: could not open modules.order at /var/tmp/mkinitramfs_3MmNVh/lib/modules/5.15.13-051513-generic.signed: No such file or directory
depmod: WARNING: could not open modules.builtin at /var/tmp/mkinitramfs_3MmNVh/lib/modules/5.15.13-051513-generic.signed: No such file or directory
And after that I can't boot anymore into the self signed kernel. Uninstalling and reinstalling and resigning it helps until next update.
What do I have to do, to avoid this problem?
[UPDATE2:] For self compiled kernels the problem seems to be solved by deactivating kernel modules: https://unix.stackexchange.com/a/685947/495409