diff options
author | Nicolas Iooss | 2023-09-30 11:31:10 +0200 |
---|---|---|
committer | Nicolas Iooss | 2023-09-30 11:31:10 +0200 |
commit | bf9f16aa653103a391ad6776e3a6ca17db2366db (patch) | |
tree | edd01644331031cbab2ecf8d0f1f27b01ac0affc /systemd-hook | |
parent | 20642f1870e0912a36c43a1e075dace308d1fc3b (diff) | |
download | aur-bf9f16aa653103a391ad6776e3a6ca17db2366db.tar.gz |
systemd-selinux 254.5-1 update
Diffstat (limited to 'systemd-hook')
-rw-r--r-- | systemd-hook | 8 |
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 |