Last year I found the file mkinitcpio.conf.pacnew.
I need luks, hybernate, encrypted separate partitions root, home and swap. My current mkinitcpio.conf contains the following:
MODULES=()
BINARIES=()
FILES=(/crypto_keyfile.bin)
HOOKS=(base udev autodetect microcode kms modconf block keyboard keymap consolefont plymouth encrypt openswap resume filesystems)
It works ok, boot every update I get messages that the system might be unbootable, etc
The pacnew suggest me the systemd style:
HOOKS=(base systemd autodetect modconf kms keyboard sd-vconsole sd-encrypt block filesystems fsck)
If I apply these changes, the system refuses to boot and is stuck on opening luks partitions. I change the only line with hooks, and run mkinitcpio -P and update-grub then reboot.
The questions are:
Should I switch to the systemd style ?
If yes, how to convert my config into the systemd style?
fstab
UUID=0410-386D /boot/efi vfat defaults,umask=0077 0 2
/dev/mapper/luks-ccbcfee1-7eb1-486d-867d-2c473ed99d3d / btrfs subvol=/@,defaults,compress=zstd:1 0 0
/dev/mapper/luks-ccbcfee1-7eb1-486d-867d-2c473ed99d3d /var/cache btrfs subvol=/@cache,defaults,compress=zstd:1 0 0
/dev/mapper/luks-ccbcfee1-7eb1-486d-867d-2c473ed99d3d /var/log btrfs subvol=/@log,defaults,compress=zstd:1 0 0
/dev/mapper/luks-ffd865c9-dbb0-4673-b8fd-1380e4782109 /home btrfs defaults,compress=zstd:1 0 0
/dev/mapper/luks-ae3aea6d-819f-4c8e-91f3-10e99685a6cd swap swap defaults 0 0
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
grub:
GRUB_CMDLINE_LINUX_DEFAULT=‘cryptdevice=UUID=ccbcfee1-7eb1-486d-867d-2c473ed99d3d:luks-ccbcfee1-7eb1-486d-867d-2c473ed99d3d root=/dev/mapper/luks-ccbcfee1-7eb1-486d-867d-2c473ed99d3d resume=/dev/mapper/luks-ae3aea6d-819f-4c8e-91f3-10e99685a6cd udev.log_priority=3’