]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: order systemd-rfkill.socket after /var/lib/systemd/rfkill (#10904)
authorLennart Poettering <lennart@poettering.net>
Sat, 24 Nov 2018 14:59:37 +0000 (15:59 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 24 Nov 2018 14:59:37 +0000 (23:59 +0900)
Otherwise we might install the socket unit early, but the service
backing it late, and then end up in strange loops when we enter rescue
mode, because we saw an event on /dev/rfkill but really can't dispatch
it nor flush it.

Fixes: #9171
units/systemd-rfkill.socket

index c8e9f71bf6db234b92d765b16a6eece54c73d78b..9d408903bb3a84b388fcd11b04d7509abcf26d32 100644 (file)
@@ -12,7 +12,8 @@ Description=Load/Save RF Kill Switch Status /dev/rfkill Watch
 Documentation=man:systemd-rfkill.socket(8)
 DefaultDependencies=no
 BindsTo=sys-devices-virtual-misc-rfkill.device
-After=sys-devices-virtual-misc-rfkill.device
+After=sys-devices-virtual-misc-rfkill.device systemd-remount-fs.service
+RequiresMountsFor=/var/lib/systemd/rfkill
 Conflicts=shutdown.target
 Before=shutdown.target