Custom CL install with LUKS encrypted rootfs


I want to install CL with encrypted rootfs. I made following steps:

  1. Create EFI, swap, and root partitions with gdisk with corresponding partition types
  2. Encrypt the root partition with cryptsetup luksFormat and open it with cryptsetup open
  3. Mount EFI and root partitions under /mnt and install CL with swupd os-install /mnt --bundles=os-core,os-core-update,kernel-native

After rebooting I’m not asked for passphrase and got error “Kernel panic - not syncing: VFS: Unable to mount root fs …”. What am I missing?

Thank you in advance.

Are you able to get into the Grub menu ?

I’m using systemd-boot which is installed by swupd os-install.

Ok, I found it I have to install bootloader-extras bundle also.

1 Like