Creating volumegroup in EOS installer deletes GPT

I have problems installing the system by LVM on LUKS method found here.

I start with creating a LUKS PV partition

Then try to create a volume group.
Screenshot 2024-03-01 233915

And after clicking OK the partition table gets deleted. NOTE: this is in an virtual machine. While baremetal installation, the complete installer crashed at this point without a error message. Just closed.

I tried to create it manuallly.

Partition scheme:

NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
loop0    7:0    0  2.3G  1 loop /run/archiso/airootfs
sda      8:0    0 20.4G  0 disk 
├─sda1   8:1    0   95M  0 part 
├─sda2   8:2    0  500M  0 part 
└─sda3   8:3    0 19.8G  0 part 
sr0     11:0    1  2.6G  0 rom  /run/archiso/bootmnt
cryptsetup luksFormat /dev/sda3
cryptsetup open /dev/sda3 cryptlvm
pvcreate /dev/mapper/cryptlvm
vgcreate cryptvg1 /dev/mapper/cryptlvm
lvcreate -L 15G cryptvg1 -n root
lvcreate -l 100%FREE cryptvg1 -n home
mkfs.ext4 /dev/cryptvg1/root
mkfs.ext4 /dev/cryptvg1/home
mkfs.ext4 /dev/sda2
mkfs.fat -F 32 /dev/sda1

In the installer they get recognized so I just set the mount points correctly as needed.

While installation I recognized the logical volumes haven’t been mounted somehow.

NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
loop0    7:0    0  2.3G  1 loop /run/archiso/airootfs
sda      8:0    0 20.4G  0 disk 
├─sda1   8:1    0   95M  0 part /tmp/calamares-root-kp0xvrxr/boot/efi
├─sda2   8:2    0  500M  0 part /tmp/calamares-root-kp0xvrxr/boot
└─sda3   8:3    0 19.8G  0 part 
sr0     11:0    1  2.6G  0 rom  /run/archiso/bootmnt

Any ideas? Is this something to open an issue for on github?

I will take a look at this and see if I can replicate it.

Calamares doesn’t support using an existing luks device. The installer closes all the luks devices before it starts mounting.

Seems like a bug to me. I ran through it debugger a few times and got inconsistent results.

I reported it upstream:

4 Likes

Cool, thank you!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.