systemd-cryptsetup-generator generated unit for root filesystem fails with keyfile
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| systemd (Ubuntu) |
Expired
|
Undecided
|
Unassigned | ||
Bug Description
I'm using Ubuntu 21.04 on a Raspberry Pi 4b.
/etc/crypttab:
# <target name> <source device> <key file> <options>
crypt_root UUID=12989868-
crypt_swap /dev/disk/
/etc/fstab
LABEL=system-boot /boot/firmware vfat defaults 0 1
/dev/mapper/
/dev/mapper/
/dev/mapper/
/boot/firmware/
dwc_otg.
On the Raspberry Pi, it seems that cryptsetup-
The issue is that /lib/cryptsetup
I can think of a couple of solutions:
1. I disabled systemd luks unit generation by passing luks=no in the kernel command line. This also disables other crypttab entries from unlocking, so my swap partition mount fails.
2. I tried disabling systemd unit generation just for my root device with x-initrd.
3. Arch Linux has a separate crypttab.initramfs file that is only loaded into the initramfs. Could this be implemented somehow?
| description: | updated |

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/1938692/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]