This problem's still there on 22.04. I simplified my notes on how to
workaround it, HTH:
**Ubuntu 22.04 and Newer: Extra Steps for Re-Using Existing LUKS Encrypted
Partition**
This has to be done using the Kubuntu or Ubuntu desktop live CD. Using the
Ubuntu Server Live CD (with text-based installer) doesn't work in either of
20.04 or 22.04 as the installer will just crash a few seconds after it starts
installing. Steps:
- Boot off Kubuntu Live CD, select Try Kubuntu to get the desktop
- Open a terminal and run: sudo cryptsetup luksOpen /dev/sdX sdX_crypt #replace
with nvme0nXpX or whatever the machine has
- Start the installer and run through it. The LVM LV's will appear in the
installer. Note that (as of 22.04 at least) makes you create an EFI system
partition - hopefully you have one even if it's unformatted
- End the installer and reboot as normal. You'll find it dumps you to an
initramfs prompt. At this point again run:
sudo cryptsetup luksOpen /dev/sdX sdX_crypt #replace with nvme0nXpX or whatever
the machine has
exit
It'll now continue booting successfully
- Once booted, create a valid /etc/crypttab:
sudo bash
export MAINLUKSPARTITION=sda4 # other examples: nvme0n1p3, whatever the machine
has
UUID=$(blkid -s UUID -o value /dev/${MAINLUKSPARTITION})
echo "${MAINLUKSPARTITION}_crypt UUID=${UUID} none luks,discard" >>
/etc/crypttab
cat /etc/crypttab
# check it looks right
update-initramfs -u -k all
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1904270
Title:
ubiquity does not support existing LUKS encrypted partitions
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1904270/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs