Ubiquity fails to install grub when /boot is encrypted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubiquity (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Existing partition setup:
- /dev/sda1 - EFI
- /dev/sda2 - LUKS encrypted volume for LVM PV
Within encrypted LVM PV:
- vg/ubuntu-root - Root volume for Ubuntu (already exists)
- vg/ubuntu-home - Home volume for Ubuntu (already exists)
Partition options selected during installation:
- /dev/sda1 - Use as EFI partition
- /dev/vg/ubuntu-root - Format as ext4, mount at /
- /dev/vg/ubuntu-home - Format as ext4, mount at /home
For Ubiquity to detect the LVM volumes at all, I first had to open the encrypted partition manually with: `sudo cryptsetup open /dev/sda2 crypt`. After that, the installation proceeded as normal until it got to the grub installation step and failed. It seems to be because /boot is encrypted in my setup and that requires `GRUB_ENABLE_
```
/var/log/syslog:Oct 21 17:19:42 ubuntu ubiquity: Setting up grub-efi-
/var/log/syslog:Oct 21 17:19:48 ubuntu ubiquity: File descriptor 4 (/dev/sda1) leaked on vgs invocation. Parent PID 16464: grub-install
/var/log/syslog:Oct 21 17:19:48 ubuntu ubiquity: File descriptor 4 (/dev/sda1) leaked on vgs invocation. Parent PID 16464: grub-install
/var/log/syslog:Oct 21 17:19:48 ubuntu ubiquity: grub-install: error: attempt to install to encrypted disk without cryptodisk enabled. Set `GRUB_ENABLE_
/var/log/syslog:Oct 21 17:19:48 ubuntu ubiquity: dpkg: error processing package grub-efi-
```
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: ubiquity 17.10.10
ProcVersionSign
Uname: Linux 4.13.0-16-generic x86_64
ApportVersion: 2.20.7-0ubuntu3
Architecture: amd64
CasperVersion: 1.387
Date: Sat Oct 21 13:24:50 2017
LiveMediaBuild: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20171018)
SourcePackage: ubiquity
UpgradeStatus: No upgrade log present (probably fresh install)
Exception during installation: ubiquity/ plugininstall. py", line 1721, in <module> ubiquity/ plugininstall. py", line 61, in wrapper ubiquity/ plugininstall. py", line 227, in run bootloader( ) ubiquity/ plugininstall. py", line 971, in configure_ bootloader install_ misc.InstallSte pError: GrubInstaller failed with code 1
Oct 21 17:20:56 ubuntu /plugininstall.py: Traceback (most recent call last):
Oct 21 17:20:56 ubuntu /plugininstall.py: File "/usr/share/
Oct 21 17:20:56 ubuntu /plugininstall.py: install.run()
Oct 21 17:20:56 ubuntu /plugininstall.py: File "/usr/share/
Oct 21 17:20:56 ubuntu /plugininstall.py: func(self)
Oct 21 17:20:56 ubuntu /plugininstall.py: File "/usr/share/
Oct 21 17:20:56 ubuntu /plugininstall.py: self.configure_
Oct 21 17:20:56 ubuntu /plugininstall.py: File "/usr/share/
Oct 21 17:20:56 ubuntu /plugininstall.py: "GrubInstaller failed with code %d" % ret)
Oct 21 17:20:56 ubuntu /plugininstall.py: ubiquity.
Oct 21 17:20:56 ubuntu /plugininstall.py: