16.04 ubiquity crashed due to package-install failure of grub2 during grub-install step

Bug #1572754 reported by TJ
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub-installer (Ubuntu)
Confirmed
High
Unassigned

Bug Description

No idea why ubiquity crashed; maybe post mortem will reveal something.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: ubiquity 2.21.60 [modified: lib/partman/automatically_partition/question]
ProcVersionSignature: Ubuntu 4.4.0-21.37-generic 4.4.6
Uname: Linux 4.4.0-21-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CasperVersion: 1.375
Date: Wed Apr 20 22:49:10 2016
InstallCmdLine: BOOT_IMAGE=/casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed boot=casper quiet splash ---
LiveMediaBuild: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160419)
ProcEnviron:
 LANGUAGE=en_GB.UTF-8
 PATH=(custom, no user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: grub-installer
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
TJ (tj) wrote :
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

From the logs

Apr 20 21:47:47 ubuntu ubiquity: Setting up grub-efi-amd64 (2.02~beta2-36ubuntu3) ...
Apr 20 21:47:48 ubuntu ubiquity:
Apr 20 21:47:48 ubuntu ubiquity: Creating config file /etc/default/grub with new version
Apr 20 21:47:48 ubuntu ubiquity: Installing for x86_64-efi platform.
Apr 20 21:47:49 ubuntu ubiquity: grub-install: error: attempt to install to encrypted disk without cryptodisk enabled. Set `GRUB_ENABLE_CRYPTODISK=1' in file `/etc/default/grub'..
Apr 20 21:47:49 ubuntu ubiquity: Failed: grub-install --target=x86_64-efi
Apr 20 21:47:49 ubuntu ubiquity: WARNING: Bootloader is not properly installed, system may not be bootable
Apr 20 21:47:49 ubuntu ubiquity: dpkg-query: no packages found matching dkms
Apr 20 21:47:49 ubuntu ubiquity: Setting up grub-efi-amd64-signed (1.66+2.02~beta2-36ubuntu3) ...
Apr 20 21:47:49 ubuntu ubiquity: Installing for x86_64-efi platform.
Apr 20 21:47:50 ubuntu ubiquity: grub-install: error: attempt to install to encrypted disk without cryptodisk enabled. Set `GRUB_ENABLE_CRYPTODISK=1' in file `/etc/default/grub'..
Apr 20 21:47:50 ubuntu ubiquity: dpkg: error processing package grub-efi-amd64-signed (--configure):
Apr 20 21:47:50 ubuntu ubiquity: subprocess installed post-installation script returned error exit status 1
Apr 20 21:47:50 ubuntu ubiquity: Errors were encountered while processing:
Apr 20 21:47:50 ubuntu ubiquity: grub-efi-amd64-signed
Apr 20 21:47:52 ubuntu ubiquity: E: Sub-process /usr/bin/dpkg returned an error code (1)

Changed in grub-installer (Ubuntu):
importance: Undecided → High
status: New → Confirmed
summary: - 16.04 installer failed during grub-install
+ 16.04 installer failed during grub-install with error: attempt to
+ install to encrypted disk without cryptodisk enabled. Set
+ `GRUB_ENABLE_CRYPTODISK=1' in file `/etc/default/grub'
Revision history for this message
TJ (tj) wrote : Re: 16.04 installer failed during grub-install with error: attempt to install to encrypted disk without cryptodisk enabled. Set `GRUB_ENABLE_CRYPTODISK=1' in file `/etc/default/grub'

This isn't a duplicate of bug #1232237. In this case the config option variable wasn't added to /etc/default/grub.

I've done so many permutations of these encrypted installations now I cannot recall whether I did any manual partitioning in this particular session. The partman log appears to suggest I didn't customise or do manual partitioning but I'd have to look further into it.

Revision history for this message
TJ (tj) wrote :

Having looked more closely this bug was a result of user error; I did in fact repartition the installation device and had a separate partition for /boot/ which was also LUKS/dm_crypt. I had forgotten I needed to edit the /target/etc/default/grub whilst ubiquity was installing GRUB, and had to do it manually after ubiquity had completed.

This bug is about ubiquity actually *crashing* due to the package install failure rather than doing a clean error report and user-controlled quit.

For that reason I'm re-titling the bug so as not to distract from this bug reason with the mention of the GRUB_ENABLE_CRYPTODISK.

summary: - 16.04 installer failed during grub-install with error: attempt to
- install to encrypted disk without cryptodisk enabled. Set
- `GRUB_ENABLE_CRYPTODISK=1' in file `/etc/default/grub'
+ 16.04 ubiquity crashed due to package-install failure of grub2 during
+ grub-install step
Revision history for this message
Phillip Susi (psusi) wrote :

I found the wrong bug to dup it against. This is the one that mentions that this option should be enabled by default.

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.