If LUKS on LVM, the order of hooks for mkinitcpio looks wrong.
If LVM on LUKS, the cryptdevice specifier for GRUB looks wrong. Or is your encrypted container called volgroup0? (That would confuse me, so I wouldn't use that name, but there's no technical reason you couldn't, I guess.)
]]>/dev/mapper/volgroup0-lv_root: clean, 102866/15171584 files, 6063942/60657664 blocks
Fired up the installation media, checked the /etc/fstab, and the /boot partition was still listed, and I can't figure out what's going on. Weird how it seemed to work, then nothing changed (unless hard powering off the system has broken something on the filesystem).
]]>Background info: I'm triple booting on a MacBook pro (Arch, MacOS & Win10). Fortunately my MacBook Pro is an Mid 2015 model that works really well with Linux. I'm new to Arch (used Manjaro previous, but a long time Linux user.
I've performed an installation, using LVM and luks to encrypt my root partition my partition layout is as follows
/dev/sda1 efi, fat 200MB (for MacOS)
/dev/sda2 MacOS, encrypted APFS, 116GB
/dev/sda3 efi, fat, 500MB (for Win10 & Arch)
/dev/sda4 win10, ntfs, 116GB
/dev/sda5 /boot, etx4, 500MB
/dev/sda6 /, lvm 231GB
The system boots and the initial ramdisk loads, then I'm prompted to enter my luks password. After this all I see is:
/dev/mapper/volgroup0-lv_root: clean, 102866/15171584 files, 6063942/60657664 blocks
..and then nothing, it just hangs there.
Key changes to system files:
* Added 'encrypt lvm2' to HOOKS in /etc/mkinitcpio.conf
* Uncommented GRUB_ENABLE_CRYPTODISK=Y in /etc/default/grub
* Added 'cryptdevice=/dev/sda6:volgroup0:allow-discards' to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub
Commands used:
mkinitcpio -p linux
pacman -S grub efibootmgr dosfstools os-prober mtools
grub-install --targex86_64-efi --bootloader-id=grub_uefi --recheck
grub-mkconfig -o /boot/grub/grub.cfg
I was about to add the lines from my /etc/fstab to this post, and that's when it hit me, I run genfstab during the install process without having /boot mounted, so fstab only contained the line required for my root volume. I added /boot to fstab (using genfstab again), and I now have a working system.
]]>