kernel-packages team mailing list archive
-
kernel-packages team
-
Mailing list archive
-
Message #55243
[Bug 1308254] [NEW] Resume mounts /dev/mapper/${dst}_unformatted, breaks GRUB and Apt
You have been subscribed to a public bug:
14.04 amd64, with LUKS encryption of /boot/ as well LVM VGs with key-
files.
The system is configured with GRUB_ENABLE_CRYPTODISK and the /boot/
file-system partition LUKS encrpyted.
After boot it has:
/dev/sda5 > /dev/mapper/LUKS_VG > /dev/VG/
/dev/mapper/VG-rootfs > /
/dev/mapper/VG-usr_local > /usr/local/
/dev/sda3 > /dev/mapper/LUKS_boot > /boot/
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/LUKS_boot_unformatted on /boot type ext3 (rw)
$ grep LUKS /proc/mounts
/dev/mapper/LUKS_boot_unformatted /boot ext3 rw,relatime,data=ordered 0 0
$ sudo dmsetup info LUKS_boot_unformatted
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-160fa39a12054ad5be449c2c943fb113-LUKS_boot_unformatted
This causes grub-probe to fail during package upgrades, which in turn
breaks Apt:
var/log/apt/term.log:2598:/usr/sbin/grub-probe: error: failed to get
canonical path of `/dev/mapper/LUKS_boot_unformatted'.
It seems as is mountall is triggered and mounts the temporary name
before "/lib/cryptsetup/cryptdisks.functions" finalize_device() renames
to the permanent name. It isn't clear if this script is called upon
resume as well as at boot-time but it is the only reference I can find
to the temporary "_unformatted" device name usage.
** Affects: linux (Ubuntu)
Importance: Undecided
Status: New
--
Resume mounts /dev/mapper/${dst}_unformatted, breaks GRUB and Apt
https://bugs.launchpad.net/bugs/1308254
You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu.