Skip to main content
Topic: Cannot boot lvm on luks [SOLVED] (Read 323 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Cannot boot lvm on luks [SOLVED]

I manually installed Artix using the base installer, the wiki for encryption https://wiki.artixlinux.org/Main/InstallationWithFullDiskEncryption has a part that concern the calamares installer.

I used the base-dinit image, do I need to enable some service and/or installing some package?
Can I use dinitctl from artix-chroot? I tried and I couldn't use it.

What files do I need to check?
I made unencrypted /boot on ext4, grub as bootloader.

From chroot, this time manually made:
Code: [Select]
dinitctl list
dinit-client: connecting to socket /run/dinitctl: No such file or directory

What should I have on /etc/crypttab?
Code: [Select]
NAME                    MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINTS
sda                       8:0    0 238.5G  0 disk 
├─sda1                    8:1    0   285M  0 part  /boot/efi
├─sda2                    8:2    0   954M  0 part  /boot
├─sda3                    8:3    0   200G  0 part 
│ └─system                 253:3    0   200G  0 crypt
│   ├─vg1-system        253:4    0 191.6G  0 lvm   /
│   └─vg1-swap          253:5    0   8.4G  0 lvm  

/etc/default/grub:
Code: [Select]
GRUB_DEFAULT="0"
GRUB_TIMEOUT="3"
GRUB_DISTRIBUTOR="Artix"
GRUB_CMDLINE_LINUX_DEFAULT="quiet cryptdevice=UUID=<uuid of sda3>:system root=/dev/mapper/vg1-system resume=/dev/mapper/vg1-swap"
GRUB_CMDLINE_LINUX="net.ifnames=0"
...
GRUB_ENABLE_CRYPTODISK="y"

/etc/mkinitcpio.conf:
Code: [Select]
HOOKS=(base udev autodetect modconf encrypt kms keyboard keymap consolefont lvm2 resume block filesystems fsck)

Re: Cannot boot lvm on luks

Reply #1
That worked, no need to edit /etc/crypttab, it is empty.