agherzan / yubikey-full-disk-encryption

Use YubiKey to unlock a LUKS partition
Apache License 2.0
795 stars 50 forks source link

Shutdown hook is not copying initramfs files so ykfde only does normal suspend #91

Closed noeamiot closed 1 year ago

noeamiot commented 2 years ago

During boot the shutdown hook throws this error : cp:can not create directory :'/run/initramfs/' no such file or directory

The initramfs files necessary for the luks-locking suspend are not created in /run/initramfs so we do a normal suspend see suspend script.

There is already an issue about this on the mkinitcpio repository and a bug reported.

While waiting for a fix on mkinicpio or whatever is causing this problem, you can check here for a temporary solution.

agherzan commented 2 years ago

I would wait for a fix in mkinicpio to avoid overcomplicating things here. That should come soon.

Vincent43 commented 1 year ago

This should be fixed in mkinitcpio v34, https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio/-/commit/7930b797a255505f84120f07cab3893cc1f31a3e