mirror of
https://github.com/systemd/systemd.git
synced 2025-03-14 04:58:28 +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:
parent
ace0bd14ba
commit
82f3063218
@ -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:");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user