Resume mounts /dev/mapper/${dst}_unformatted, breaks GRUB and Apt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cryptsetup (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
14.04 amd64, with LUKS encryption of /boot/ as well LVM VGs with key-files.
The system is configured with GRUB_ENABLE_
After boot it has:
/dev/sda5 > /dev/mapper/LUKS_VG > /dev/VG/
/dev/mapper/
/dev/mapper/
/dev/sda3 > /dev/mapper/
A LUKS key-file is read from a location inside the /usr/local/ file-system and used to unlock /dev/sda3 for Linux. /dev/sda3 was separately unlocked by GRUB at boot-time.
After a suspend/resume cycle I noticed that 'mount' reports:
$ mount | grep LUKS
/dev/mapper/
$ grep LUKS /proc/mounts
/dev/mapper/
$ sudo dmsetup info LUKS_boot_
Device does not exist.
Command failed
$ sudo dmsetup info LUKS_boot
Name: LUKS_boot
State: ACTIVE
Read Ahead: 256
Tables present: LIVE
Open count: 1
Event number: 1
Major, minor: 252, 27
Number of targets: 1
UUID: CRYPT-LUKS1-
This causes grub-probe to fail during package upgrades, which in turn breaks Apt:
var/log/
It seems as is mountall is triggered and mounts the temporary name before "/lib/cryptsetu
no longer affects: | apt (Ubuntu) |
no longer affects: | grub2 (Ubuntu) |
affects: | cryptsetup (Ubuntu) → linux (Ubuntu) |
This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:
apport-collect 1308254
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.