Skip to content

Commit 4186441

Browse files
committed
Revert "cryptsetup: umount encrypted devices before detaching it during shutdown"
This reverts commit 362c378. This commit introduced an ordering loop: remote-cryptsetup.target was both before and after remote-fs-pre.target. It also globally ordered all cryptsetup volumes before all mounts. Such global ordering is problematic if people have stacked storage. Let's look for a different solution. See systemd#14378 (comment).
1 parent 7a670b1 commit 4186441

File tree

3 files changed

+9
-18
lines changed

3 files changed

+9
-18
lines changed

man/bootup.xml

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -92,24 +92,17 @@
9292

9393
<!-- note: do not use unicode ellipsis here, because docbook will replace that
9494
with three dots anyway, messing up alignment -->
95-
<programlisting>(various cryptsetup
96-
devices...)
95+
<programlisting>local-fs-pre.target
9796
|
9897
v
99-
cryptsetup.target
100-
|
101-
v
102-
local-fs-pre.target
103-
|
104-
v
105-
(various mounts and (various swap
106-
fsck services...) devices...) (various low-level (various low-level
107-
| | services: udevd, API VFS mounts:
108-
v v tmpfiles, random mqueue, configfs,
109-
local-fs.target swap.target seed, sysctl, ...) debugfs, ...)
110-
| | | |
111-
\__________________|_________________ _________________|______________________/
112-
\ /
98+
(various mounts and (various swap (various cryptsetup
99+
fsck services...) devices...) devices...) (various low-level (various low-level
100+
| | | services: udevd, API VFS mounts:
101+
v v v tmpfiles, random mqueue, configfs,
102+
local-fs.target swap.target cryptsetup.target seed, sysctl, ...) debugfs, ...)
103+
| | | | |
104+
\__________________|_________________ | ___________________|____________________/
105+
\|/
113106
v
114107
sysinit.target
115108
|

units/local-fs-pre.target

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@
1111
Description=Local File Systems (Pre)
1212
Documentation=man:systemd.special(7)
1313
RefuseManualStart=yes
14-
After=cryptsetup.target

units/remote-fs-pre.target

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@
1111
Description=Remote File Systems (Pre)
1212
Documentation=man:systemd.special(7)
1313
RefuseManualStart=yes
14-
After=remote-cryptsetup.target

0 commit comments

Comments
 (0)