After entering a passphrase for the encrypted root device during boot, I get the following error:
Code: Select all
device-mapper: reload ioctl on failed: Invalid argument
!! Failed to open LUKS device /dev/sdb2
!! Could not find the root in /dev/sdb2
!! Please specify another value or:
!! - press Enter for the same
!! - type "shell" for a shell
!! - type "q" to skip
Code: Select all
cryptsetup luksOpen /dev/sdb2 rootCode: Select all
device-mapper: reload ioctl on failed: Invalid argumentContext
I'm currently installing Gentoo for the second time after settling with Artix for two weeks, and I'm using the latest livecd image. Kernel version is 5.10.52, I compile it manually, I don't use any bootloader (I generate an EFIStub) and I use genkernel to generate an initamfs image.
As prescribed here https://wiki.gentoo.org/wiki/Full_Disk_ ... Simplified, I've enabled the following kernel parameters:
- AES cipher algorithms (AES-NI)
- SHA1 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)
- SHA256 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)
My config
I use a script to automate the kernel compilation, initramfs and EFI boot entry creation, which should tell pretty much all that's going on:
Code: Select all
kernel_version=5.10.52
# Compile kernel & copy output to /boot/efi/boot
cd /usr/src/linux
make
make modules_install
make install
cp /boot/vmlinuz-${kernel_version}-gentoo /boot/efi/boot/bootx64.efi
# Generate initramfs image & copy output to /boot/efi/boot
genkernel\
--install\
--kernel-config=/usr/src/linux/.config\
--luks\
initramfs
cp /boot/initramfs-${kernel_version}-gentoo.img /boot/efi/boot/initramfs.img
# Create EFI boot
efibootmgr\
--disk /dev/sdb\
--part 1\
--label "Gentoo"\
--loader '\efi\boot\bootx64.efi'\
--unicode 'crypt_root=LABEL=ROOT rw initrd=\efi\boot\initramfs.img'\
--create
# (/dev/sdb1 being my EFI boot partition)
Code: Select all
Current kernel's LOCALVERSION is set to ''; will ignore set --kernel-localversion value '-x86_64' because kernel was not build...Code: Select all
initramfs: >> Initializing ... (...) >> Appending modules cpio data ... modules: 0 modules copied. Is that correct?- And the usual warning suggesting to add the "crypt_root" and "crypt_swap" kernel parameters that occurs whenever using genkernel with the --luks flag.



