Bug 1763155

Summary: Password fallback when using systemd-cryptsetup-generator keydev option
Product: Red Hat Enterprise Linux 8 Reporter: David Tardon <dtardon>
Component: systemdAssignee: David Tardon <dtardon>
Status: CLOSED ERRATA QA Contact: Frantisek Sumsal <fsumsal>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.0CC: dtardon, jsynacek, lmiksik, msekleta, systemd-maint-list
Target Milestone: rcFlags: msekleta: mirror+
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: systemd-239-23.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 16:45:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Tardon 2019-10-18 11:14:01 UTC
This bug was initially created as a copy of Bug #1722182

I am copying this bug because: 
It is still a bug in 8.x.


Description of problem:
It is possible to use a keydev to unlock a luks root volume at boot since https://github.com/lnykryn/systemd-rhel/pull/231 (#1619743)
However, when the device used as keydev is not present (for example an unplugged usb drive) it is not possible to provide a password as fallback.

Version-Release number of selected component (if applicable):
systemd-219-62.el7_6.6.src.rpm

How reproducible:
Always

Steps to Reproduce:
1. Configure a keydev for a luks root volume
2. Remove the device that is used as keydev
3. Reboot

Actual results:
After a very long timeout the dracut shell starts.

Expected results:
After a reasonable timeout the user is asked for a password. When entering the correct password the system boots normally.

Additional info:
Attached a patch for systemd-219-62.el7_6.6.src.rpm that allows the user to enter a password when the keydev device is not present.

Comment 1 David Tardon 2019-12-13 09:53:56 UTC
PR: https://github.com/systemd-rhel/rhel-8/pull/53

Comment 7 Lukáš Nykrýn 2020-03-20 09:05:44 UTC
fix merged to github master branch -> https://github.com/systemd-rhel/rhel-8/pull/77

Comment 14 errata-xmlrpc 2020-04-28 16:45:06 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:1794