fix: fix lfs/systemd

This commit is contained in:
2025-12-25 15:32:10 -05:00
parent 313d443ad9
commit 2ed5376a3d
3 changed files with 23 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
target=(/usr/lib/sysusers.d/*.conf)
target=(/usr/lib/systemd/system/*)
triggers=("install" "remove")
operation(){
if systemd-detect-virt --chroot; then

View 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'
}