udevil: use SYSTEMD_WANTS in udev

it seems systemd 219 dont like the way we mount
This commit is contained in:
Stefan Saraev 2015-02-22 22:16:15 +02:00
parent 5ca1a88ed6
commit 368f9ae5a1

View File

@ -16,13 +16,13 @@ GOTO="exit"
# mount or umount for hdds
LABEL="harddisk"
ACTION=="add", RUN+="/usr/bin/systemctl restart udevil-mount@/dev/%k.service"
ACTION=="add", TAG+="systemd", ENV{SYSTEMD_WANTS}+="udevil-mount@/dev/%k.service"
ACTION=="remove", RUN+="/usr/bin/systemctl stop udevil-mount@/dev/%k.service"
GOTO="exit"
# mount or umount for opticals
LABEL="optical"
ACTION=="add|change", RUN+="/usr/bin/systemctl restart udevil-mount@/dev/%k.service"
ACTION=="add", TAG+="systemd", ENV{SYSTEMD_WANTS}+="udevil-mount@/dev/%k.service"
GOTO="exit"
# Exit