You are not logged in.

#1 2017-01-17 22:09:04

1ptb3b
Member
Registered: 2017-01-17
Posts: 95

Minimal initramfs with LUKS encryption

Hello.

I was following this tutorial to build a minmal initramfs image. https://wiki.archlinux.org/index.php/Minimal_initramfs But, I wasn't able to get rid of udev or encrypt HOOKS because my LUKS partition wouldn't open.

Is it possible to get rid of udev and encrypt from mkinitcpio.conf?

I'm running a Dell XPS 13 HiDPI laptop, using sytemd-boot. This is how my disk is laid out.

  • LUKS encrypted root partition /

  • non-encrypted boot partition /boot

This is my mkinitcpio.conf.

MODULES="ext4 algif_skcipher dm_crypt rtsx_pci_sdmmc serio_raw "
MODULES+="atkbd crct10dif_pclmul crc32_pclmul crc32c_intel "
MODULES+="ghash_clmulni_intel aesni_intel nvme xhci_pci i8042"

BINARIES="fsck fsck.ext4 e2fsck cryptsetup"

HOOKS="base consolefont"

This is what my systemd-boot entry file looks like.

title   archlinux
linux   /vmlinuz-linux
initrd  /initramfs-linux.img
options cryptdevice=UUID=someuuid:cryptroot root=/dev/mapper/cryptroot rw

Offline

Board footer

Powered by FluxBB