package/systemd: set cgroups default-hierarchy to unified
PATCH 1/3 package/systemd: set cgroups default-hierarchy to unified
Use the unified hierarchy, which is systemds default since v243. The biggest holdover was docker which now supports the unified layout.
Note that systemd will automatically fallback to hybrid if the kernel is too old or the unified hierarchy fails for other reasons.
--- package/systemd/systemd.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/systemd/systemd.mk +1 -1
@@ -24,7 +24,7 @@ SYSTEMD_SELINUX_MODULES = systemd udev SYSTEMD_PROVIDES = udev SYSTEMD_CONF_OPTS += \ - -Ddefault-hierarchy=hybrid \ + -Ddefault-hierarchy=unified \ -Didn=true \ -Dima=false \ -Dkexec-path=/usr/sbin/kexec \
Signature · 1 line
2.30.2
PATCH 2/3 package/systemd: Update description and kernel options
realign the configuration to the README.
enable CONFIG_AUTOFS_FS (kernel >= 4.18) aswell the someday to be removed CONFIG_AUTOFS4_FS option.
--- package/systemd/Config.in | 20 +++++++++++++++----- package/systemd/systemd.mk | 16 ++++++++++++---- 2 files changed, 27 insertions(+), 9 deletions(-)
package/systemd/Config.in +15 -5
@@ -22,7 +22,7 @@ menuconfig BR2_PACKAGE_SYSTEMD depends on !BR2_STATIC_LIBS # kmod depends on BR2_TOOLCHAIN_USES_GLIBC depends on BR2_TOOLCHAIN_HAS_SSP - depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10 + depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13 depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 depends on BR2_HOST_GCC_AT_LEAST_5 # host-systemd select BR2_PACKAGE_HAS_UDEV
@@ -51,13 +51,23 @@ menuconfig BR2_PACKAGE_SYSTEMD an elaborate transactional dependency-based service control logic. It can work as a drop-in replacement for sysvinit. - Systemd requires a Linux kernel >= 3.0 with the following + Systemd requires a Linux kernel >= 3.13 with the following options enabled: - - CONFIG_CGROUPS + - CONFIG_DEVTMPFS + - CONFIG_CGROUPS (it is OK to disable all controllers) - CONFIG_INOTIFY_USER - - CONFIG_FHANDLE - - CONFIG_AUTOFS4_FS + - CONFIG_SIGNALFD + - CONFIG_TIMERFD + - CONFIG_EPOLL + - CONFIG_UNIX (it requires CONFIG_NET, but every other flag in it is not necessary) + - CONFIG_SYSFS + - CONFIG_PROC_FS + - CONFIG_FHANDLE (libudev, mount and bind mount handling) + + - CONFIG_NET_NS (needed by PrivateNetwork=, used in some systemd units) + + - CONFIG_AUTOFS_FS / CONFIG_AUTOFS4_FS - CONFIG_TMPFS_POSIX_ACL - CONFIG_TMPFS_XATTR
package/systemd/systemd.mk +12 -4
@@ -630,14 +630,22 @@ SYSTEMD_CONF_ENV = $(HOST_UTF8_LOCALE_ENV) SYSTEMD_NINJA_ENV = $(HOST_UTF8_LOCALE_ENV) define SYSTEMD_LINUX_CONFIG_FIXUPS + $(call KCONFIG_ENABLE_OPT,CONFIG_DEVTMPFS) $(call KCONFIG_ENABLE_OPT,CONFIG_CGROUPS) - $(call KCONFIG_ENABLE_OPT,CONFIG_FHANDLE) - $(call KCONFIG_ENABLE_OPT,CONFIG_EPOLL) + $(call KCONFIG_ENABLE_OPT,CONFIG_INOTIFY_USER) $(call KCONFIG_ENABLE_OPT,CONFIG_SIGNALFD) $(call KCONFIG_ENABLE_OPT,CONFIG_TIMERFD) - $(call KCONFIG_ENABLE_OPT,CONFIG_INOTIFY_USER) - $(call KCONFIG_ENABLE_OPT,CONFIG_PROC_FS) + $(call KCONFIG_ENABLE_OPT,CONFIG_EPOLL) + $(call KCONFIG_ENABLE_OPT,CONFIG_UNIX) $(call KCONFIG_ENABLE_OPT,CONFIG_SYSFS) + $(call KCONFIG_ENABLE_OPT,CONFIG_PROC_FS) + $(call KCONFIG_ENABLE_OPT,CONFIG_FHANDLE) + + $(call KCONFIG_ENABLE_OPT,CONFIG_NET_NS) + + $(call KCONFIG_DISABLE_OPT,CONFIG_SYSFS_DEPRECATED) + + $(call KCONFIG_ENABLE_OPT,CONFIG_AUTOFS_FS) $(call KCONFIG_ENABLE_OPT,CONFIG_AUTOFS4_FS) $(call KCONFIG_ENABLE_OPT,CONFIG_TMPFS_POSIX_ACL) $(call KCONFIG_ENABLE_OPT,CONFIG_TMPFS_XATTR)
Signature · 1 line
2.30.2
PATCH 3/3 package/systemd: always enable systemd-tmpfilesd
In reply to Norbert Langethis tool and service is pretty much expected to be enabled, making this a certainty will enable future improvements.
remove the related BR2_PACKAGE_SYSTEMD Config option tree-wide.
--- package/dhcp/Config.in | 1 - package/systemd/Config.in | 11 ----------- package/systemd/systemd.mk | 7 +------ 3 files changed, 1 insertion(+), 18 deletions(-)
package/dhcp/Config.in +0 -1
@@ -13,7 +13,6 @@ if BR2_PACKAGE_DHCP config BR2_PACKAGE_DHCP_SERVER bool "dhcp server" - select BR2_PACKAGE_SYSTEMD_TMPFILES if BR2_PACKAGE_SYSTEMD help DHCP server from the ISC DHCP distribution.
package/systemd/Config.in +0 -11
@@ -465,17 +465,6 @@ config BR2_PACKAGE_SYSTEMD_TIMESYNCD http://www.freedesktop.org/software/systemd/man/systemd-timesyncd.html -config BR2_PACKAGE_SYSTEMD_TMPFILES - bool "enable tmpfiles support" - default y - help - systemd-tmpfiles creates, deletes, and cleans up volatile - and temporary files and directories, based on the - configuration file format and location specified in - tmpfiles.d(5). - - http://www.freedesktop.org/software/systemd/man/systemd-tmpfiles.html - config BR2_PACKAGE_SYSTEMD_USERDB bool "enable userdb daemon" help
package/systemd/systemd.mk +1 -6
@@ -48,6 +48,7 @@ SYSTEMD_CONF_OPTS += \ -Dsysvrcnd-path= \ -Dtelinit-path= \ -Dtests=false \ + -Dtmpfiles=true \ -Dumount-path=/usr/bin/umount \ -Dutmp=false
@@ -300,12 +301,6 @@ else SYSTEMD_CONF_OPTS += -Dquotacheck=false endif -ifeq ($(BR2_PACKAGE_SYSTEMD_TMPFILES),y) -SYSTEMD_CONF_OPTS += -Dtmpfiles=true -else -SYSTEMD_CONF_OPTS += -Dtmpfiles=false -endif - ifeq ($(BR2_PACKAGE_SYSTEMD_SYSUSERS),y) SYSTEMD_CONF_OPTS += -Dsysusers=true else
Signature · 1 line
2.30.2