mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
udevil: use SYSTEMD_WANTS in udev
it seems systemd 219 dont like the way we mount
This commit is contained in:
@@ -16,13 +16,13 @@ GOTO="exit"
|
|||||||
|
|
||||||
# mount or umount for hdds
|
# mount or umount for hdds
|
||||||
LABEL="harddisk"
|
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"
|
ACTION=="remove", RUN+="/usr/bin/systemctl stop udevil-mount@/dev/%k.service"
|
||||||
GOTO="exit"
|
GOTO="exit"
|
||||||
|
|
||||||
# mount or umount for opticals
|
# mount or umount for opticals
|
||||||
LABEL="optical"
|
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"
|
GOTO="exit"
|
||||||
|
|
||||||
# Exit
|
# Exit
|
||||||
|
|||||||
Reference in New Issue
Block a user