System fails to boot and/or LUKS encrypted devices fail to unlock if a duplicate entry exists in the /etc/crypttab file

Solution Verified - Updated -

Issue

  • Systemd Cryptsetup-Generator stops processing all /etc/crypttab entries 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content