LUKS swap partition destroyed upon reboot in 15.10 and 16.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Usually on every reboot, sometimes every other, the LUKS encrypted swap partition is being destroyed. blkid shows no UUID for the partition, cryptsetup doesn't recognize it as a LUKS partition. This is logged:
Tra 06 23:05:41 deltalabs systemd[1]: dev-disk-
Tra 06 23:05:41 deltalabs systemd[1]: Timed out waiting for device dev-disk-
Tra 06 23:05:41 deltalabs systemd[1]: Dependency failed for Cryptography Setup for sda2_crypt.
Tra 06 23:05:41 deltalabs systemd[1]: Dependency failed for dev-mapper-
Tra 06 23:05:41 deltalabs systemd[1]: Dependency failed for /dev/mapper/
Tra 06 23:05:41 deltalabs systemd[1]: Dependency failed for Swap.
Tra 06 23:05:41 deltalabs systemd[1]: Dependency failed for Encrypted Volumes.
The disk layout is as follows:
Number Start End Size Type File system Flags
1 1049kB 1024MB 1023MB primary ext4 boot
2 1024MB 6024MB 5000MB primary
3 6024MB 406GB 400GB primary
4 406GB 430GB 24,0GB primary
#2 is LUKS swap and #3 is LUKS root, which obviously gets decrypted and mounted okay. This started happening after an update in 15.10 few weeks ago and aparently continues in 16.04 beta 2.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: systemd 229-3ubuntu2 [modified: usr/share/
ProcVersionSign
Uname: Linux 4.4.0-17-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.1-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Apr 6 23:08:06 2016
InstallationDate: Installed on 2016-01-11 (86 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
MachineType: To Be Filled By O.E.M. To Be Filled By O.E.M.
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: systemd
SystemdDelta:
[EXTENDED] /etc/systemd/
[EXTENDED] /lib/systemd/
[EXTENDED] /lib/systemd/
3 overridden configuration files found.
UpgradeStatus: Upgraded to xenial on 2016-04-05 (1 days ago)
dmi.bios.date: 11/26/2009
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: P1.40
dmi.board.name: A770DE+
dmi.board.vendor: ASRock
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.name: To Be Filled By O.E.M.
dmi.product.
dmi.sys.vendor: To Be Filled By O.E.M.
Please give me the output of the following commands from a boot with a destroyed swap.
cat /etc/fstab
cat /etc/crypttab
sudo blkid
From that boot, please also run
sudo journalctl -b > /tmp/journal.txt
and attach /tmp/journal.txt here. Thanks!