summarylogtreecommitdiffstats
path: root/systemd-hook
diff options
context:
space:
mode:
authorNicolas Iooss2023-09-30 11:31:10 +0200
committerNicolas Iooss2023-09-30 11:31:10 +0200
commitbf9f16aa653103a391ad6776e3a6ca17db2366db (patch)
treeedd01644331031cbab2ecf8d0f1f27b01ac0affc /systemd-hook
parent20642f1870e0912a36c43a1e075dace308d1fc3b (diff)
downloadaur-bf9f16aa653103a391ad6776e3a6ca17db2366db.tar.gz
systemd-selinux 254.5-1 update
Diffstat (limited to 'systemd-hook')
-rw-r--r--systemd-hook8
1 files changed, 5 insertions, 3 deletions
diff --git a/systemd-hook b/systemd-hook
index 4a62ec6c48df..63f27e0bd58a 100644
--- a/systemd-hook
+++ b/systemd-hook
@@ -17,7 +17,7 @@ systemd_live() {
udevd_live() {
is_chrooted
- if [ ! -d /run/udev ]; then
+ if [ ! -S /run/udev/control ]; then
echo >&2 " Skipped: Device manager is not running."
exit 0
fi
@@ -49,8 +49,10 @@ case "$op" in
udev-reload)
udevd_live
/usr/bin/udevadm control --reload
- /usr/bin/udevadm trigger
- /usr/bin/udevadm settle
+ if [ ! -e /etc/systemd/do-not-udevadm-trigger-on-update ]; then
+ /usr/bin/udevadm trigger -c change
+ /usr/bin/udevadm settle
+ fi
;;
binfmt)
systemd_live