cryptsetup: WARNING: could not determine root device from /etc/fstab
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-signed-hwe (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
My system can not reboot on its default kernel. I get a kernel panic:
VFS: Cannot open root device "md0p1" or unknown-block(0,0): error -6
I go to grub and boot the previous kernel successfully.
0-16:29 djh@c24-03-01 ~> uname -a
Linux c24-03-
0-16:29 djh@c24-03-01 ~> sudo update-initramfs -u -k 5.3.0-51-generic
update-initramfs: Generating /boot/initrd.
cryptsetup: WARNING: failed to detect canonical device of /dev/md0p1
cryptsetup: WARNING: could not determine root device from /etc/fstab
Here is what I have got:
0-16:29 djh@c24-03-01 ~> cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/md0p1 during curtin installation
/dev/md0p1 / ext4 defaults 0 0
# /boot/efi was on /dev/sdc1 during curtin installation
/dev/disk/
/swap.img none swap sw 0 0
0-16:30 djh@c24-03-01 ~> cat /proc/mdstat
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
md0 : active raid1 sdf2[0] sde2[1]
233772032 blocks super 1.2 [2/2] [UU]
bitmap: 2/2 pages [8KB], 65536KB chunk
unused devices: <none>
0-16:30 djh@c24-03-01 ~> cat /etc/crypttab
# <target name> <source device> <key file> <options>
luks-sda /dev/sda /etc/luks-keyfile luks
luks-sdb /dev/sdb /etc/luks-keyfile luks
luks-sdc /dev/sdc /etc/luks-keyfile luks
luks-sdd /dev/sdd /etc/luks-keyfile luks
The luks devices go into LVM and are used by ganeti.
0-16:30 djh@c24-03-01 ~> apt show cryptsetup
Package: cryptsetup
Version: 2:2.0.2-1ubuntu1.1
[ . . . ]
0-16:31 djh@c24-03-01 ~> apt show cryptsetup-bin
Package: cryptsetup-bin
Version: 2:2.0.2-1ubuntu1.1
Possibly-related issue upstream. It looks like debian has a newer version?
https:/
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-
ProcVersionSign
Uname: Linux 5.3.0-47-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.14
Architecture: amd64
Date: Thu Apr 30 16:33:32 2020
InstallationDate: Installed on 2020-02-27 (63 days ago)
InstallationMedia: Ubuntu-Server 18.04.4 LTS "Bionic Beaver" - Release amd64 (20200203.1)
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=
SourcePackage: linux-signed-hwe
UpgradeStatus: No upgrade log present (probably fresh install)
If I set the UUID of /, the warnings from update-initramfs disappear.
0-16:40 djh@c24-03-01 ~> grep UUID /etc/fstab 3466-4f75- 8adb-cd770c6776 2c" / ext4 defaults 0 0 img-5.3. 0-51-generic
# device; this may be used with UUID= as a more robust way to name devices
UUID="9d35e010-
0-16:39 djh@c24-03-01 ~> sudo update-initramfs -u -k 5.3.0-51-generic
update-initramfs: Generating /boot/initrd.
Bootstrap on the kernel yields the same kernel panic, though.