encrypted ubuntu installation parallel to Windows not possible
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-desktop-provision |
New
|
Undecided
|
Unassigned |
Bug Description
The old ubiquity installer offers an option to install Ubuntu alongside Windows, or to install Ubuntu encrypted, however there is no option to install an encrypted Ubuntu alongside Windows.
In the old ubiquity installer you were able to work around it. Starting with a Windows installation on one disk and free space (you can shrink a Windows partition already with Windows tools):
- create an ext4 /boot partition
- create a large partition to be used as an encrypted volume
- on the shell:
- create a volume group on the large partition
- create logical volumes on the volume group (swap, /, maybe /home)
- get the information from the large partition to be used in /etc/crypttab
- go back in the installer one step, go forward again, to make the
new volume group and logical volumes known.
- start the install
- during the install create /target/
- after the install finishes re-create the initramfs to include
the new crypttab
The desktop installer currently doesn't even offer to create a partition for encryption.
Ideally it should be possible not to have the manual steps necessary in the shell, but providing an option to create the encrypted Ubuntu installation alongside Windows in the installer.
affects: | ubuntu-desktop-installer → ubuntu-desktop-provision |
I believe that a combination of the use_gap and resize features should be enough for this, maybe with a tweak to bitlocker support. For instance, if there is bitlocker but a large enough gap, we can do the guided install into it, so Subiquity provides a use_gap target off of storage/v2guided.