summaryrefslogtreecommitdiff
path: root/units/meson.build
diff options
context:
space:
mode:
authorFranck Bui <fbui@suse.com>2019-12-03 09:30:57 +0100
committerFranck Bui <fbui@suse.com>2019-12-05 11:43:02 +0100
commit1dc85eff1d0dff18aaeaae530c91bf53f34b726e (patch)
tree2dbf3ae1d2a44d134a85740971f4cdf69a2ed4a6 /units/meson.build
parent1e904320aacb21b1b9563015cb8a7f2014088920 (diff)
downloadsystemd-1dc85eff1d0dff18aaeaae530c91bf53f34b726e.tar.gz
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
Diffstat (limited to 'units/meson.build')
-rw-r--r--units/meson.build1
1 files changed, 1 insertions, 0 deletions
diff --git a/units/meson.build b/units/meson.build
index 6a3a0d0dea..9da60a431c 100644
--- a/units/meson.build
+++ b/units/meson.build
@@ -74,6 +74,7 @@ units = [
'sysinit.target.wants/'],
['sysinit.target', ''],
['syslog.socket', ''],
+ ['system-systemd\\x2dcryptsetup.slice', 'HAVE_LIBCRYPTSETUP'],
['system-update.target', ''],
['system-update-pre.target', ''],
['system-update-cleanup.service', ''],