Bug 1897802

Summary: early boot: WARNING: Locking directory /run/cryptsetup is missing!
Product: [Fedora] Fedora Reporter: Georg Sauthoff <fedora>
Component: cryptsetupAssignee: Milan Broz <gmazyland>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 33CC: agk, fedoraproject, filbranden, flepied, gmazyland, lnykryn, mailinglists35, msekleta, okozina, ssahani, s, systemd-maint, voj-tech, yuwatana, zbyszek, z
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: cryptsetup-2.3.5-2.fc34 cryptsetup-2.3.5-2.fc33 cryptsetup-2.3.5-2.fc32 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-19 20:11:46 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 Georg Sauthoff 2020-11-14 16:05:51 UTC
Description of problem:
When booting from a luks-encrypted root fs systemd-cryptsetup issues the following warning:


systemd-cryptsetup[385]: WARNING: Locking directory /run/cryptsetup is missing!


Version-Release number of selected component (if applicable):
systemd-udev-246.6-3.fc33.x86_64

How reproducible:
always

Steps to Reproduce:
1. install Fedora with luks-encryption enabled
2. boot
3. search journalctl -b for this warning

Actual results:
systemd-cryptsetup.* WARNING: Locking directory /run/cryptsetup is missing!

Expected results:
No such warning.


Additional info:

Comment 1 Zbigniew Jędrzejewski-Szmek 2020-11-14 17:37:40 UTC
That message is from libcryptsetup:
https://sources.debian.org/src/cryptsetup/2:2.3.4-1/lib/utils_device_locking.c/?hl=109#L109

Comment 2 Milan Broz 2020-11-14 17:48:41 UTC
And this message is just warning that neeeded directory is not available, so it is created as a fallback inside libcryptsetup (but with default permissons - that could be problematic).

Systemd should create this directory according to provided /usr/lib/tmpfiles.d/cryptsetup.conf (part of cryptsetup-libs) before calling crypto activation.

Some systemd dependency is missing here?

Comment 3 Zbigniew Jędrzejewski-Szmek 2021-02-03 08:35:37 UTC
https://github.com/systemd/systemd/pull/18448

Comment 4 Zbigniew Jędrzejewski-Szmek 2021-02-03 19:20:13 UTC
The mix migrated to cryptsetup after all ;)
https://gitlab.com/cryptsetup/cryptsetup/-/commit/1e7521c0564936fdbf098ce448e91e0ba25bffae

Comment 5 Fedora Update System 2021-03-11 14:33:40 UTC
FEDORA-2021-17c262e08d has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-17c262e08d

Comment 6 Fedora Update System 2021-03-11 14:33:41 UTC
FEDORA-2021-28e528d2b6 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2021-28e528d2b6

Comment 7 Fedora Update System 2021-03-11 14:33:42 UTC
FEDORA-2021-3a694e18c9 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-3a694e18c9

Comment 8 Fedora Update System 2021-03-11 19:51:59 UTC
FEDORA-2021-17c262e08d has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-17c262e08d`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-17c262e08d

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2021-03-12 00:19:20 UTC
FEDORA-2021-3a694e18c9 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-3a694e18c9`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-3a694e18c9

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2021-03-12 00:21:28 UTC
FEDORA-2021-28e528d2b6 has been pushed to the Fedora 32 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-28e528d2b6`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-28e528d2b6

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2021-03-19 20:11:46 UTC
FEDORA-2021-17c262e08d has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2021-03-23 01:32:08 UTC
FEDORA-2021-3a694e18c9 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2021-03-27 01:23:12 UTC
FEDORA-2021-28e528d2b6 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 14 Mai Ling 2021-06-03 20:28:18 UTC
until this change lands in various other EL clones (centos, oracle), workaround is:

# cat /etc/dracut.conf.d/99-local.conf
install_items+=" /usr/lib/tmpfiles.d/cryptsetup.conf "