From 9c8e68cc8a0ca303273e931fb4c042af7ed89a73 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sat, 18 Feb 2017 23:28:01 -0500 Subject: [PATCH] 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 elogind 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 --- src/basic/build.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/basic/build.h b/src/basic/build.h index 856519f61..d37610738 100644 --- a/src/basic/build.h +++ b/src/basic/build.h @@ -43,8 +43,11 @@ #define _ACL_FEATURE_ "-ACL" #endif +#define _CGROUP_HIEARCHY_ "default-hierarchy=" DEFAULT_HIERARCHY_NAME + #define SYSTEMD_FEATURES \ _PAM_FEATURE_ " " \ _SELINUX_FEATURE_ " " \ _SMACK_FEATURE_ " " \ - _ACL_FEATURE_ " " + _ACL_FEATURE_ " " \ + _CGROUP_HIEARCHY_ -- 2.30.2