installer fails to install grub with encrypted root fs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubiquity (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I tried to install Ubuntu on my laptop. The system has Windows 8 installed and I'm replacing Nix with Ubuntu. I used an encrypted root filesystem. Not sure which, if any, of these causes the problem.
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: ubiquity 2.21.37
ProcVersionSign
Uname: Linux 4.2.0-16-generic x86_64
ApportVersion: 2.19.1-0ubuntu3
Architecture: amd64
CasperVersion: 1.365
Date: Sun Nov 8 21:13:39 2015
InstallCmdLine: BOOT_IMAGE=
LiveMediaBuild: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
ProcEnviron:
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: grub-installer
UpgradeStatus: No upgrade log present (probably fresh install)
Relevant line from UbiquitSyslog.txt: CRYPTODISK= 1' in file `/etc/default/ grub'..
Nov 9 05:12:46 ubuntu ubiquity: grub-install: error: attempt to install to encrypted disk without cryptodisk enabled. Set `GRUB_ENABLE_
I had a LUKS partition opened and had set up LVM lvs inside it. After fixing GRUB manually, the system still wouldn't boot. Ubiquity didn't create an /etc/crypttab so the system wasn't bootable. After creating a crypttab, I had to rebuild the initramfses. The whole encrypted root thing is underdocumented and pretty hard to get right.
In addition, it was happy to install without a /boot partition selected, but grub-install won't work that way with an encrypted root.