[systemd-devel] How to express that a device listed in /etc/crypttab depends on a mount point

aplanas aplanas at suse.de
Wed Sep 25 15:28:22 UTC 2024


Hi!

An user have /home in a different encrypted partition via pcrlock. After 
the initrd, during the normal boot process, the systemd-cryptsetup 
generator is reading this file to open the devices in /dev/mapper/$name. 
But this is happening before /var gets mounted, and this contains the 
pcrlock.json file requires to unlock the home device.

Is there a way to indicate this dependency for the generator, as a 
"RequiresMountsFor=" for .mount services or x-systemd.requires= in 
fstab?


More information about the systemd-devel mailing list