update-initramfs fails when booted with dracut initrd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dracut (Ubuntu) |
In Progress
|
High
|
Unassigned |
Bug Description
I created an initrd with dracut and successfully booted with it, but generating an initrd fails then:
```
$ sudo update-initramfs -u
update-initramfs: Generating /boot/initrd.
cryptsetup: WARNING: target 'luks-e1446dc1-
found in /etc/crypttab
W: Couldn't identify type of root file system '/dev/mapper/
```
Booted with an initrd from initramfs-tools:
```
$ mount | grep system_crypt | grep -v snap
/dev/mapper/
```
Booted with an initrd from dracut:
```
$ mount | grep " / "
/dev/mapper/
```
ProblemType: Bug
DistroRelease: Ubuntu 24.10
Package: initramfs-tools 0.142ubuntu34
ProcVersionSign
Uname: Linux 6.11.0-8-generic x86_64
NonfreeKernelMo
ApportVersion: 2.30.0-0ubuntu4
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Thu Oct 17 15:14:42 2024
InstallationDate: Installed on 2022-03-09 (953 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
PackageArchitec
SourcePackage: initramfs-tools
UpgradeStatus: Upgraded to oracular on 2024-05-02 (168 days ago)
modified.
mtime.conffile.
description: | updated |
description: | updated |
/etc/crypttab is not included in the initrd, including this files fixes it.