]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/cryptsetup/cryptsetup-generator.c
crypsetup: introduce x-initrd.attach option
authorFranck Bui <fbui@suse.com>
Tue, 3 Dec 2019 08:30:57 +0000 (09:30 +0100)
committerFranck Bui <fbui@suse.com>
Thu, 5 Dec 2019 10:43:02 +0000 (11:43 +0100)
commit1dc85eff1d0dff18aaeaae530c91bf53f34b726e
tree2dbf3ae1d2a44d134a85740971f4cdf69a2ed4a6
parent1e904320aacb21b1b9563015cb8a7f2014088920
crypsetup: introduce x-initrd.attach option

This option is an indication for PID1 that the entry in crypttab is handled by
initrd only and therefore it shouldn't interfer during the usual start-up and
shutdown process.

It should be primarily used with the encrypted device containing the root FS as
we want to keep it (and thus its encrypted device) until the very end of the
shutdown process, i.e. when initrd takes over.

This option is the counterpart of "x-initrd.mount" used in fstab.

Note that the slice containing the cryptsetup services also needs to drop the
usual shutdown dependencies as it's required by the cryptsetup services.

Fixes: #14224
man/crypttab.xml
src/cryptsetup/cryptsetup-generator.c
src/cryptsetup/cryptsetup.c
units/meson.build
units/system-systemd\x2dcryptsetup.slice [new file with mode: 0644]