No way to create a PV from a LUKS volume in installer

Bug #1170827 reported by Roel Brook
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

- Slightly related to https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/923552, but actually different -

In the 13.04 installer, during custom partitioning, you can create a partition, then set "Use as" to "Physical Volume for Encryption".

This creates a LUKS volume, with a ext4 filesystem inside.

It should be possible (and was, in older versions), to use the LUKS volume as a LVM Physical Volume. You can select the ext4 partition and select "Change". However, you cannot select physical volume.

Selecting "Physical Volume for Encryption" again, crashes the installer.

Tags: bot-comment
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1170827/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
affects: ubuntu → ubiquity (Ubuntu)
Revision history for this message
Roel Brook (rainmaker52) wrote :

I have devised a workaround for this, and will share this here:

- Boot the system with a gparted CD
- Partition your disk, in my case:
    - Partition 1: 250 MB
    - Partition 2: 20 GB
- Now, luksFormat /dev/sda2 (replace with your partition):
    - cryptsetup luksFormat /dev/sda2
- Open the luks volume:
    - cryptsetup luksOpen /dev/sda2 pvCrypt
- Partition LVM:
    - pvcreate /dev/mapper/pvCrypt
    - vgcreate vgSystem /dev/mapper/pvCrypt
    - lvcreate -nlvRoot -L10G vgSystem
    - lvcreate -nlvSwap -L1G vgSystem
- Reboot with the install CD / DVD loaded
- *Before* starting setup, unlock and open the crypt. Open a terminal.
    - cryptsetup luksOpen /dev/sda2 pvCrypt
    - pvscan
    - vgchange -ay
- Install ubuntu. Enter the LVs and their respective mountpaths. /dev/sda1 will be /boot
- On first boot, the boot fails. Enter the same commands as above, followed by ctrl-D.
- In a shell:
    - echo -e "#<Target>\t<Source>\t<Key file>\t<Options>\npvCrypt\t\t/dev/sda2\tnone\tluks" >> /etc/crypttab
    - update-initramfs -u
- Reboot

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

The workaround posted in comment #2 is sound.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubiquity (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.