mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-10 01:17:44 +03:00
cryptsetup: umount encrypted devices before detaching it during shutdown
This is done by ordering local-fs-pre.target and remote-fs-pre.target after cryptsetup.target and remote-cryptsetup.target respectively. Fixes: #8472
This commit is contained in:
parent
1dc85eff1d
commit
362c378291
@ -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
|
||||
|
|
||||
|
@ -11,3 +11,4 @@
|
||||
Description=Local File Systems (Pre)
|
||||
Documentation=man:systemd.special(7)
|
||||
RefuseManualStart=yes
|
||||
After=cryptsetup.target
|
||||
|
@ -11,3 +11,4 @@
|
||||
Description=Remote File Systems (Pre)
|
||||
Documentation=man:systemd.special(7)
|
||||
RefuseManualStart=yes
|
||||
After=remote-cryptsetup.target
|
||||
|
Loading…
Reference in New Issue
Block a user