Skip to content

Commit

Permalink
cryptsetup: umount encrypted devices before detaching it during shutdown
Browse files Browse the repository at this point in the history
This is done by ordering local-fs-pre.target and remote-fs-pre.target after
cryptsetup.target and remote-cryptsetup.target respectively.

Fixes: systemd#8472
  • Loading branch information
fbuihuu committed Dec 5, 2019
1 parent 1dc85ef commit 362c378
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
25 changes: 16 additions & 9 deletions man/bootup.xml
Original file line number Diff line number Diff line change
Expand Up @@ -92,17 +92,24 @@

<!-- 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
|
Expand Down
1 change: 1 addition & 0 deletions units/local-fs-pre.target
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@
Description=Local File Systems (Pre)
Documentation=man:systemd.special(7)
RefuseManualStart=yes
After=cryptsetup.target
1 change: 1 addition & 0 deletions units/remote-fs-pre.target
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@
Description=Remote File Systems (Pre)
Documentation=man:systemd.special(7)
RefuseManualStart=yes
After=remote-cryptsetup.target

0 comments on commit 362c378

Please sign in to comment.