mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
build.h: include default cgroup hierarchy setting in --version output
This is pretty important, and we print this string during startup, so putting the default hierarchy information might help with diagnosis if things go awry. $ ./systemctl --version systemd 232 +PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN default-hierarchy=legacy v2: make the message nicer by including the ./configure option argument directly in output
This commit is contained in:
parent
77fab2a91c
commit
5a94b18752
@ -626,6 +626,8 @@ AS_CASE("$DEFAULT_HIERARCHY",
|
||||
[unified], [mode=CGROUP_UNIFIED_ALL],
|
||||
AC_MSG_ERROR(Bad default hierarchy mode ${DEFAULT_HIERARCHY}))
|
||||
AC_DEFINE_UNQUOTED(DEFAULT_HIERARCHY, [$mode], [Default cgroup hierarchy])
|
||||
AC_DEFINE_UNQUOTED(DEFAULT_HIERARCHY_NAME, ["$DEFAULT_HIERARCHY"],
|
||||
[Default cgroup hierarchy as string])
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
have_xz=no
|
||||
|
@ -133,6 +133,8 @@
|
||||
#define _IDN_FEATURE_ "-IDN"
|
||||
#endif
|
||||
|
||||
#define _CGROUP_HIEARCHY_ "default-hierarchy=" DEFAULT_HIERARCHY_NAME
|
||||
|
||||
#define SYSTEMD_FEATURES \
|
||||
_PAM_FEATURE_ " " \
|
||||
_AUDIT_FEATURE_ " " \
|
||||
@ -152,4 +154,5 @@
|
||||
_BLKID_FEATURE_ " " \
|
||||
_ELFUTILS_FEATURE_ " " \
|
||||
_KMOD_FEATURE_ " " \
|
||||
_IDN_FEATURE_
|
||||
_IDN_FEATURE_ " " \
|
||||
_CGROUP_HIEARCHY_
|
||||
|
Loading…
Reference in New Issue
Block a user