System fails to boot and/or LUKS encrypted devices fail to unlock if a duplicate entry exists in the /etc/crypttab file
Issue
- Systemd Cryptsetup-Generator stops processing all
/etc/crypttabentries if a duplicate entry is encountered, or a systemd cryptsetup unit file already exists. This will prevent any encrypted devices after the duplicate entry from being unlocked, and can result in the system booting to emergency mode if the device is also listed in/etc/fstab.
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.