From 57897f0ef5d9855febe4b79227491380a871ee46 Mon Sep 17 00:00:00 2001 From: Rudi Heitbaum Date: Tue, 1 Nov 2022 04:02:52 +0000 Subject: [PATCH] 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). --- packages/sysutils/systemd/package.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/sysutils/systemd/package.mk b/packages/sysutils/systemd/package.mk index 94470331c4..7869e37632 100644 --- a/packages/sysutils/systemd/package.mk +++ b/packages/sysutils/systemd/package.mk @@ -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