mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
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:
parent
b90465d3e6
commit
57897f0ef5
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user