1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 18:55:40 +03:00

manager: taint systemd if cgroupsv1 is used

let's mark cgroupsv1 systems as "tainted" in the taint string logic.
It's time.
This commit is contained in:
Lennart Poettering 2021-02-19 17:48:50 +01:00
parent ace0bd14ba
commit 82f3063218

View 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:");