mirror of
https://github.com/systemd/systemd
synced 2024-10-04 15:21:01 +00:00
units/blockdev@.target: conflict with umount.target
Follow-up for d120ce478d
blockdev@.target is used as a synchronization point between
the mount unit and corresponding systemd-cryptsetup@.service.
After the mentioned commit, it doesn't get a stop job enqueued
during shutdown, and thus the stop job for systemd-cryptsetup@.service
could be run before the mount unit is stopped.
Therefore, let's make blockdev@.target conflict with umount.target,
which is also what systemd-cryptsetup@.service does.
Fixes #29336
This commit is contained in:
parent
0ba8374bb8
commit
99f360a46b
|
@ -10,5 +10,9 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Block Device Preparation for %f
|
Description=Block Device Preparation for %f
|
||||||
Documentation=man:systemd.special(7)
|
Documentation=man:systemd.special(7)
|
||||||
|
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
|
Conflicts=umount.target
|
||||||
|
Before=umount.target
|
||||||
|
|
||||||
StopWhenUnneeded=yes
|
StopWhenUnneeded=yes
|
||||||
|
|
Loading…
Reference in a new issue