new blfs: sys-apps/systemd-257.8

This commit is contained in:
wyj
2025-12-30 09:15:07 -05:00
parent 210266a086
commit 882325a5b0
10 changed files with 265 additions and 0 deletions
@@ -0,0 +1,23 @@
target=(/usr/lib/udev/rules.d/*)
triggers=("install" "remove")
operation() {
if systemd-detect-virt --chroot; then
echo >&2 " Skipped: Running in chroot."
exit 0
fi
if ! systemd-notify --booted; then
echo >&2 " Skipped: Current root is not booted."
exit 0
fi
if [ ! -S /run/udev/control ]; then
echo >&2 " Skipped: Device manager is not running."
exit 0
fi
/usr/bin/udevadm control --reload
if [ ! -e /etc/systemd/do-not-udevadm-trigger-on-update ]; then
/usr/bin/udevadm trigger -c change
/usr/bin/udevadm settle
fi
}