]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
manager: taint systemd if cgroupsv1 is used
authorLennart Poettering <lennart@poettering.net>
Fri, 19 Feb 2021 16:48:50 +0000 (17:48 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 19 Feb 2021 16:50:16 +0000 (17:50 +0100)
let's mark cgroupsv1 systems as "tainted" in the taint string logic.
It's time.

src/core/manager.c

index f6936bedd46ca6becf205a48fd72137224d7fa1a..d8f80a55362cfe231420828fdfa9f9a64920fe5f 100644 (file)
@@ -4799,6 +4799,7 @@ char *manager_taint_string(Manager *m) {
 
         buf = new(char, sizeof("split-usr:"
                                "cgroups-missing:"
+                               "cgrousv1:"
                                "local-hwclock:"
                                "var-run-bad:"
                                "overflowuid-not-65534:"
@@ -4815,6 +4816,9 @@ char *manager_taint_string(Manager *m) {
         if (access("/proc/cgroups", F_OK) < 0)
                 e = stpcpy(e, "cgroups-missing:");
 
+        if (cg_all_unified() == 0)
+                e = stpcpy(e, "cgroupsv1:");
+
         if (clock_is_localtime(NULL) > 0)
                 e = stpcpy(e, "local-hwclock:");