From 94f752c936d657e12399b1d26938e8d822d615d4 Mon Sep 17 00:00:00 2001 From: Vlastimil Holer Date: Tue, 5 May 2020 17:22:43 +0200 Subject: [PATCH] M #-: On RH-like systems use systemctl from /usr/bin/ --- src/lib/udev/rules.d/65-context.rules##rpm.systemd.one | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/udev/rules.d/65-context.rules##rpm.systemd.one b/src/lib/udev/rules.d/65-context.rules##rpm.systemd.one index 90698e0..257f13d 100644 --- a/src/lib/udev/rules.d/65-context.rules##rpm.systemd.one +++ b/src/lib/udev/rules.d/65-context.rules##rpm.systemd.one @@ -9,7 +9,7 @@ SUBSYSTEM=="net", ACTION=="add", \ TAG+="systemd", ENV{SYSTEMD_WANTS}+="one-context-reconfigure-delayed.service" SUBSYSTEM=="net", ACTION=="remove", \ - RUN+="/bin/systemctl --no-block start one-context-reconfigure-delayed.service" + RUN+="/usr/bin/systemctl --no-block start one-context-reconfigure-delayed.service" # When CONTEXT CD-ROM is changed, it generates 2 events. This rule takes # every second event and triggers systemd service one-context-reconfigure. @@ -18,18 +18,18 @@ SUBSYSTEM=="block", ACTION=="change", \ ENV{ID_CDROM}=="1", \ ENV{ID_FS_TYPE}=="iso9660" ENV{ID_FS_LABEL_ENC}=="CONTEXT", \ ENV{SEQNUM}=="*[02468]", \ - RUN+="/bin/systemctl --no-block start one-context-reconfigure.service" + RUN+="/usr/bin/systemctl --no-block start one-context-reconfigure.service" # Handle disk resize SUBSYSTEM=="block", ACTION=="change", \ ENV{RESIZE}=="1", \ - RUN+="/bin/systemctl --no-block start one-context-force.service" + RUN+="/usr/bin/systemctl --no-block start one-context-force.service" SUBSYSTEM=="scsi", ACTION=="change", \ ENV{SDEV_UA}=="CAPACITY_DATA_HAS_CHANGED", \ - RUN+="/bin/systemctl --no-block start one-context-force.service" + RUN+="/usr/bin/systemctl --no-block start one-context-force.service" # Handle swap hot-attach SUBSYSTEM=="block", ACTION=="add", \ ENV{ID_FS_TYPE}=="swap", \ - RUN+="/bin/systemctl --no-block start one-context-force.service" + RUN+="/usr/bin/systemctl --no-block start one-context-force.service"