Merge pull request #10506 from heitbaum/systemd-fix

systemd: fix static drop-ins as reported by systemctl --failed
This commit is contained in:
Christian Hewitt
2025-09-22 11:26:36 +04:00
committed by GitHub

View File

@@ -199,6 +199,9 @@ post_makeinstall_target() {
safe_remove ${INSTALL}/usr/lib/systemd/system/systemd-time-wait-sync.service safe_remove ${INSTALL}/usr/lib/systemd/system/systemd-time-wait-sync.service
safe_remove ${INSTALL}/usr/lib/systemd/systemd-time-wait-sync safe_remove ${INSTALL}/usr/lib/systemd/systemd-time-wait-sync
# remove the userdbctl load-credentials script - no service (addon) require the creation of static users
safe_remove ${INSTALL}/usr/lib/systemd/system/systemd-userdb-load-credentials.service
# tune journald.conf # tune journald.conf
sed -e "s,^.*Compress=.*$,Compress=no,g" -i ${INSTALL}/etc/systemd/journald.conf sed -e "s,^.*Compress=.*$,Compress=no,g" -i ${INSTALL}/etc/systemd/journald.conf
sed -e "s,^.*MaxFileSec=.*$,MaxFileSec=0,g" -i ${INSTALL}/etc/systemd/journald.conf sed -e "s,^.*MaxFileSec=.*$,MaxFileSec=0,g" -i ${INSTALL}/etc/systemd/journald.conf
@@ -271,6 +274,8 @@ post_makeinstall_target() {
safe_remove ${INSTALL}/etc/udev/rules.d safe_remove ${INSTALL}/etc/udev/rules.d
ln -sf /storage/.config/udev.rules.d ${INSTALL}/etc/udev/rules.d ln -sf /storage/.config/udev.rules.d ${INSTALL}/etc/udev/rules.d
ln -sf /storage/.cache/userdb ${INSTALL}/etc/userdb
# journald # journald
ln -sf /storage/.cache/journald.conf.d ${INSTALL}/usr/lib/systemd/journald.conf.d ln -sf /storage/.cache/journald.conf.d ${INSTALL}/usr/lib/systemd/journald.conf.d
} }