]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/manager: drop obsolete cgroup taint string
authorMike Yuan <me@yhndnzj.com>
Tue, 23 Apr 2024 13:24:55 +0000 (21:24 +0800)
committerMike Yuan <me@yhndnzj.com>
Wed, 24 Apr 2024 00:39:29 +0000 (08:39 +0800)
Wwe can't boot on systems without cgroup anyway
(even cgroup v1 will be gone pretty soon).

catalog/systemd.catalog.in
man/org.freedesktop.systemd1.xml
src/core/manager.c

index 04e90e0b75fdbddd26b78f069dd4efb7f9024d80..87022f40faf558fcb283ecae73f77fdf71bcf474 100644 (file)
@@ -558,8 +558,6 @@ Defined-By: systemd
 Support: %SUPPORT_URL%
 
 The following "tags" are possible:
-- "cgroups-missing" — the kernel was compiled without cgroup support or access
-  to expected interface files is restricted
 - "var-run-bad" — /var/run is not a symlink to /run
 - "overflowuid-not-65534" — the kernel user ID used for "unknown" users (with
   NFS or user namespaces) is not 65534
index 1870ed02bb614ffbee17947add216725e5cf4024..3aa1d0de571bfd3193b8eab9bf80d4317e6eb6fe 100644 (file)
@@ -1668,14 +1668,6 @@ node /org/freedesktop/systemd1 {
 
         </varlistentry>
 
-        <varlistentry>
-          <term><literal>cgroups-missing</literal></term>
-
-          <listitem><para>Support for cgroups is unavailable.</para>
-
-          <xi:include href="version-info.xml" xpointer="v252"/></listitem>
-        </varlistentry>
-
         <varlistentry>
           <term><literal>cgroupsv1</literal></term>
 
index 0078f5a33f8f5e4bc7fc3300d8e8958d5e2b6512..856bbd823c495704dec494a57f3c0d4ec2d9c868 100644 (file)
@@ -4836,22 +4836,19 @@ static int short_uid_range(const char *path) {
 }
 
 char* manager_taint_string(const Manager *m) {
+        const char *stage[11] = {};
+        size_t n = 0;
+
         /* Returns a "taint string", e.g. "local-hwclock:var-run-bad". Only things that are detected at
          * runtime should be tagged here. For stuff that is known during compilation, emit a warning in the
          * configuration phase. */
 
         assert(m);
 
-        const char* stage[12] = {};
-        size_t n = 0;
-
         _cleanup_free_ char *usrbin = NULL;
         if (readlink_malloc("/bin", &usrbin) < 0 || !PATH_IN_SET(usrbin, "usr/bin", "/usr/bin"))
                 stage[n++] = "unmerged-usr";
 
-        if (access("/proc/cgroups", F_OK) < 0)
-                stage[n++] = "cgroups-missing";
-
         if (cg_all_unified() == 0)
                 stage[n++] = "cgroupsv1";