diff options
author | Franck Bui <fbui@suse.com> | 2019-12-03 09:30:57 +0100 |
---|---|---|
committer | Franck Bui <fbui@suse.com> | 2019-12-05 11:43:02 +0100 |
commit | 1dc85eff1d0dff18aaeaae530c91bf53f34b726e (patch) | |
tree | 2dbf3ae1d2a44d134a85740971f4cdf69a2ed4a6 /units/system-systemd\x2dcryptsetup.slice | |
parent | Fixup typo in NEWS (diff) | |
download | systemd-1dc85eff1d0dff18aaeaae530c91bf53f34b726e.tar.xz systemd-1dc85eff1d0dff18aaeaae530c91bf53f34b726e.zip |
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/system-systemd\x2dcryptsetup.slice')
-rw-r--r-- | units/system-systemd\x2dcryptsetup.slice | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/units/system-systemd\x2dcryptsetup.slice b/units/system-systemd\x2dcryptsetup.slice new file mode 100644 index 0000000000..83310900a7 --- /dev/null +++ b/units/system-systemd\x2dcryptsetup.slice @@ -0,0 +1,13 @@ +# SPDX-License-Identifier: LGPL-2.1+ +# +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +[Unit] +Description=Cryptsetup Units Slice +Documentation=man:systemd.special(7) +DefaultDependencies=no |