Score:0

Ubuntu Server setup fails for Luks root partition

ye flag

I am trying to install Ubuntu Server 22.04 onto a disk with the following partition layout: 500MB /boot/efi 500MB /boot 200GB / with LUKS

After the installer starts I go to the console and set up the partitions and encrypt the 3rd disk: Ctrl+2

sudo su
parted /dev/sda mklabel gpt
parted /dev/sda mkpart primary fat32 1MiB 502MiB
parted /dev/sda set 1 esp on
parted /dev/sda mkpart primary ext4 502MiB 1003MiB
parted /dev/sda mkpart primary ext4 1004MiB 100%
cryptsetup luksFormat --type luks2 /dev/sda3
cryptsetup luksOpen /dev/sda3 ubuntu
pvcreate /dev/mapper/ubuntu
vgcreate vgubuntu /dev/mapper/ubuntu
lvcreate -n root -l +100%FREE vgubuntu

Then Ctrl+f1 back to the installer. At the custom partition screen mount and format the /boot and /boot/efi partitions and then mount and format the /dev/mapper/vgubuntu root as /

After pressing continue in a few seconds I get the error. In the log I didn't find the relevant are but the install fails at configuring dm_crypt:dmcrypt-ubuntu line.

Is there any step that I am missing to create a fully encrypted Ubuntu server install (except boot)? I will want to use it with Dropbear as a later step.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.