update: update systemd-257.8
add 30-systemd-daemon-reload-system.HOOK
This commit is contained in:
14
lfs/systemd-257.8/30-systemd-daemon-reload-system.HOOK
Normal file
14
lfs/systemd-257.8/30-systemd-daemon-reload-system.HOOK
Normal file
@@ -0,0 +1,14 @@
|
||||
target=(/usr/lib/sysusers.d/*.conf)
|
||||
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
|
||||
|
||||
/usr/bin/systemctl --system daemon-reload
|
||||
}
|
||||
Reference in New Issue
Block a user