Thank you for the advice , until now it seems there is no need to reinstall. It is working all right, booting is super fast . I had some issues with suspend, as the computer was powering on randomly by itself. So I ran again
# mkinitcpio -p linux-zen
and added the following
resume=UUID=UUID-of-swap-partition
to the refind_linux.conf file. And resume works now!
It is LUKS version 2. I'll post if anything notable happens meanwhile.
Cheers
]]>NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
nvme0n1 259:0 0 953.9G 0 disk
├─nvme0n1p1 259:1 0 446.1M 0 part /boot
├─nvme0n1p2 259:2 0 144.5G 0 part
├─nvme0n1p3 259:3 0 130.9G 0 part
├─nvme0n1p4 259:4 0 22G 0 part [SWAP]
├─nvme0n1p5 259:5 0 1G 0 part
├─nvme0n1p6 259:6 0 200M 0 part
└─nvme0n1p7 259:7 0 654.8G 0 part
└─luks 254:0 0 654.8G 0 crypt /var/log
/var/cache
/home
/.snapshots
/
I created a swap partition (labeled as /dev/nvme0n1p4), as it was my intention to enjoy the advantages of zswap (the wiki says it is preferable to zram and that it works only in conjunction with a dedicated swap partition). Moreover, sometimes I turn the laptop into suspend mode instead of shutting it down when I go to bed. I consider the security risk of having a non-encrypted swap partition (with zswap) as more than acceptable. I'm sure a better way exist, can you please give me a few hints?
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
nvme0n1
├─nvme0n1p1
│ vfat FAT32 SYSTEM
│ 66FE-32E1 295M 34% /boot
├─nvme0n1p2
│ ntfs OS A633000332FFD671
├─nvme0n1p3
│ ntfs 01D86C69A62750F0
├─nvme0n1p4
│ swap 1 48027649-e023-44f6-bd7d-75b20035f72e [SWAP]
├─nvme0n1p5
│ ntfs RECOVERY
│ 245447255446F956
├─nvme0n1p6
│ vfat FAT32 MYASUS
│ 5A0D-A168
└─nvme0n1p7
crypto 2 911fcc24-b622-4f36-8f79-057acdc40393
└─luks
btrfs ROOT b1ae555f-7861-4abc-b079-dec2af172849 386.2G 41%
/var/log
/var/cache
/home
/.snapshots
/
As I am a big fan of refind, I had to reboot the system a few times into emergency mode (using the installation USB disk) until I managed to identify an operational configuration. Thus, my refind_linux.conf file looks like (where /dev/mapper/luks is the encrypted partition)
"Boot using default options" "cryptdevice=UUID=911fcc24-b622-4f36-8f79-057acdc40393:luks root=/dev/mapper/luks luks=UUID=b1ae555f-7861-4abc-b079-dec2af172849 rw rootflags=subvol=@ initrd=amd-ucode.img initrd=initramfs-%v.img add_efi_memmap"
"Boot with fallback initramfs" "cryptdevice=UUID=911fcc24-b622-4f36-8f79-057acdc40393:luks root=/dev/mapper/luks luks=UUID=b1ae555f-7861-4abc-b079-dec2af172849 rw rootflags=subvol=@ initrd=amd-ucode.img initrd=initramfs-%v-fallback.img add_efi_memmap"
"Boot to rescue mode" "cryptdevice=UUID=911fcc24-b622-4f36-8f79-057acdc40393:luks root=/dev/mapper/luks luks=UUID=b1ae555f-7861-4abc-b079-dec2af172849 rw rootflags=subvol=@ rescue initrd=initramfs-%v-fallback.img"
"Boot to single-user mode" "cryptdevice=UUID=911fcc24-b622-4f36-8f79-057acdc40393:luks root=/dev/mapper/luks luks=UUID=b1ae555f-7861-4abc-b079-dec2af172849 rw rootflags=subvol=@ initrd=amd-ucode.img initrd=initramfs-%v.img archisobasedir=arch archisolabel=ARCH_202206 single"
"Boot to emergency mode" "cryptdevice=UUID=911fcc24-b622-4f36-8f79-057acdc40393:luks root=/dev/mapper/luks luks=UUID=b1ae555f-7861-4abc-b079-dec2af172849 rw rootflags=subvol=@ emergency initrd=initramfs-%v-fallback.img"
Was there any simpler way to do it?
I have looked on
https://bbs.archlinux.org/viewtopic.php?id=264218
in order to make refind load the Arch Linux icon instead of the Linux penguin. I added
icons_dir icons
at line 80 in /boot/EFI/BOOT/refind.conf, but it did not help.
Thank you,
Bogdan