]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cryptsetup: umount encrypted devices before detaching it during shutdown 14235/head
authorFranck Bui <fbui@suse.com>
Tue, 3 Dec 2019 08:49:09 +0000 (09:49 +0100)
committerFranck Bui <fbui@suse.com>
Thu, 5 Dec 2019 10:43:05 +0000 (11:43 +0100)
This is done by ordering local-fs-pre.target and remote-fs-pre.target after
cryptsetup.target and remote-cryptsetup.target respectively.

Fixes: #8472
man/bootup.xml
units/local-fs-pre.target
units/remote-fs-pre.target

index d3715234000365fa89efd252c9e3f94c1dd7894b..55b3eb8a332ce488ba96f7a749135aaa38b9c571 100644 (file)
 
     <!-- note: do not use unicode ellipsis here, because docbook will replace that
          with three dots anyway, messing up alignment -->
-<programlisting>local-fs-pre.target
+<programlisting>(various cryptsetup
+     devices...)
          |
          v
-(various mounts and   (various swap   (various cryptsetup
- fsck services...)     devices...)        devices...)       (various low-level   (various low-level
-         |                  |                  |             services: udevd,     API VFS mounts:
-         v                  v                  v             tmpfiles, random     mqueue, configfs,
-  local-fs.target      swap.target     cryptsetup.target    seed, sysctl, ...)      debugfs, ...)
-         |                  |                  |                    |                    |
-         \__________________|_________________ | ___________________|____________________/
-                                              \|/
+  cryptsetup.target
+         |
+         v
+ local-fs-pre.target
+         |
+         v
+(various mounts and   (various swap
+ fsck services...)     devices...)                        (various low-level      (various low-level
+         |                  |                              services: udevd,        API VFS mounts:
+         v                  v                              tmpfiles, random        mqueue, configfs,
+  local-fs.target      swap.target                         seed, sysctl, ...)      debugfs, ...)
+         |                  |                                     |                      |
+         \__________________|_________________   _________________|______________________/
+                                              \ /
                                                v
                                         sysinit.target
                                                |
index 9aca15b95381f9d1dc011cfd56d53c42c37a1ca6..e9a1f188bf369e7140a302a96bd4d2c040822cce 100644 (file)
@@ -11,3 +11,4 @@
 Description=Local File Systems (Pre)
 Documentation=man:systemd.special(7)
 RefuseManualStart=yes
+After=cryptsetup.target
index 3f22605c8c7c2d48996092c46bf37afa44180bef..b4a68c73dd64a2ba12aaedd223298100582593e9 100644 (file)
@@ -11,3 +11,4 @@
 Description=Remote File Systems (Pre)
 Documentation=man:systemd.special(7)
 RefuseManualStart=yes
+After=remote-cryptsetup.target