update: rename filedir to work with new version of leaf
This commit is contained in:
6
sys-apps/systemd/20-systemd-sysusers.HOOK
Normal file
6
sys-apps/systemd/20-systemd-sysusers.HOOK
Normal file
@@ -0,0 +1,6 @@
|
||||
target=(/usr/lib/sysusers.d/*.conf)
|
||||
triggers=("install")
|
||||
operation() {
|
||||
/usr/bin/systemd-sysusers
|
||||
}
|
||||
|
||||
5
sys-apps/systemd/21-systemd-tmpfiles.HOOK
Normal file
5
sys-apps/systemd/21-systemd-tmpfiles.HOOK
Normal file
@@ -0,0 +1,5 @@
|
||||
target=(/usr/lib/tmpfiles.d/*.conf)
|
||||
triggers=("install")
|
||||
operation() {
|
||||
/usr/bin/systemd-tmpfiles --create
|
||||
}
|
||||
14
sys-apps/systemd/25-systemd-binfmt.HOOK
Normal file
14
sys-apps/systemd/25-systemd-binfmt.HOOK
Normal file
@@ -0,0 +1,14 @@
|
||||
target=(/usr/lib/binfmt.d/*.conf)
|
||||
triggers=("install")
|
||||
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/lib/systemd/systemd-binfmt
|
||||
}
|
||||
5
sys-apps/systemd/25-systemd-catalog.HOOK
Normal file
5
sys-apps/systemd/25-systemd-catalog.HOOK
Normal file
@@ -0,0 +1,5 @@
|
||||
target=(/usr/lib/systemd/catalog/*)
|
||||
triggers=("install" "remove")
|
||||
operation() {
|
||||
/usr/bin/journalctl --update-catalog
|
||||
}
|
||||
5
sys-apps/systemd/25-systemd-hwdb.HOOK
Normal file
5
sys-apps/systemd/25-systemd-hwdb.HOOK
Normal file
@@ -0,0 +1,5 @@
|
||||
target=(/usr/lib/udev/hwdb.d/*)
|
||||
triggers=("install" "remove")
|
||||
operation() {
|
||||
/usr/bin/systemd-hwdb --usr update
|
||||
}
|
||||
14
sys-apps/systemd/30-systemd-daemon-reload-system.HOOK
Normal file
14
sys-apps/systemd/30-systemd-daemon-reload-system.HOOK
Normal file
@@ -0,0 +1,14 @@
|
||||
target=(/usr/lib/systemd/system/*)
|
||||
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
|
||||
}
|
||||
14
sys-apps/systemd/30-systemd-daemon-reload-user.HOOK
Normal file
14
sys-apps/systemd/30-systemd-daemon-reload-user.HOOK
Normal file
@@ -0,0 +1,14 @@
|
||||
target=(/usr/lib/systemd/user/*)
|
||||
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 reload 'user@*.service'
|
||||
}
|
||||
23
sys-apps/systemd/35-systemd-udev-reload.HOOK
Normal file
23
sys-apps/systemd/35-systemd-udev-reload.HOOK
Normal file
@@ -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
|
||||
}
|
||||
5
sys-apps/systemd/35-systemd-update.HOOK
Normal file
5
sys-apps/systemd/35-systemd-update.HOOK
Normal file
@@ -0,0 +1,5 @@
|
||||
target=(/usr/)
|
||||
triggers=("install" "remove")
|
||||
operation() {
|
||||
touch -c /usr
|
||||
}
|
||||
Reference in New Issue
Block a user