systemd: remove other notused systemd units

CONFIG_HUGETLBFS and CONFIG_HUGETLB_PAGE need to be set for
/sys/kernel/mm/hugepages to be available. Reading at
https://www.kernel.org/doc/Documentation/vm/hugetlbpage.txt

remove unused units:
- systemd[1]: systemd-journald-audit.socket was skipped because of an unmet condition check (ConditionSecurity=audit).
- systemd[1]: dev-hugepages.mount was skipped because of an unmet condition check (ConditionPathExists=/sys/kernel/mm/hugepages).
This commit is contained in:
Rudi Heitbaum 2022-11-01 04:02:52 +00:00
parent b90465d3e6
commit 57897f0ef5

View File

@ -140,6 +140,12 @@ post_makeinstall_target() {
safe_remove ${INSTALL}/usr/lib/systemd/systemd-update-done
safe_remove ${INSTALL}/usr/lib/systemd/system/systemd-update-done.service
safe_remove ${INSTALL}/usr/lib/systemd/system/*.target.wants/systemd-update-done.service
#
safe_remove ${INSTALL}/usr/lib/systemd/system/dev-hugepages.mount
safe_remove ${INSTALL}/usr/lib/systemd/system/*.target.wants/dev-hugepages.mount
#
safe_remove ${INSTALL}/usr/lib/systemd/system/systemd-journald-audit.socket
safe_remove ${INSTALL}/usr/lib/systemd/system/*.target.wants/systemd-journald-audit.socket
# adjust systemd-hwdb-update (we have read-only /etc).
sed '/^ConditionNeedsUpdate=.*$/d' -i ${INSTALL}/usr/lib/systemd/system/systemd-hwdb-update.service