]> git.ipfire.org Git - thirdparty/systemd.git/commit
cryptsetup: use WantsMountsFor= for key/header when nofail is set
authorLuca Boccassi <bluca@debian.org>
Mon, 27 Nov 2023 14:03:36 +0000 (14:03 +0000)
committerLuca Boccassi <bluca@debian.org>
Wed, 29 Nov 2023 11:04:59 +0000 (11:04 +0000)
commitc9be8e420e53b97f573b2eed80bd4f03e53f02b7
treeb8286d311ae9074b0ec4a98f3141628d9693d725
parent8284c2cb68ab2f1239bf24b03a99a548e2345b93
cryptsetup: use WantsMountsFor= for key/header when nofail is set

The header and keyfile are necessary only for opening the device, not
for closing, so it is not necessary to deactivate the generated
cryptsetup unit when the header or keyfile backing store are removed.

This is especially useful in the case of softreboot, when the new
mount root is setup under /run/nextroot/ but we don't want to close
the cryptsetup devices for encrypted /var/ or so, and we simply
mount it directly on /run/nextroot/var/ before the soft-reboot.
man/crypttab.xml
src/cryptsetup/cryptsetup-generator.c
test/units/testsuite-24.sh