[From nobody Wed May  6 01:45:05 2026
Received: (at submit) by bugs.debian.org; 25 Oct 2025 02:39:24 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-17.9 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,FOURLA,HAS_PACKAGE,SPF_HELO_PASS,SPF_PASS,
 WORD_WITHOUT_VOWELS,XMAILER_REPORTBUG autolearn=ham autolearn_force=no
 version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 49; hammy, 117; neutral, 19; spammy,
 2. spammytokens:0.877-+--H*rp:D*nz, 0.870-+--H*F:D*nz
 hammytokens:0.000-+--trixie, 0.000-+--bookworm, 0.000-+--H*x:12.0.0,
 0.000-+--H*UA:12.0.0, 0.000-+--H*Ad:N*Bug
Return-path: &lt;richard@walnut.gen.nz&gt;
Received: from mail1.mailhub.nz ([103.16.181.133]:53060
 helo=mailhub-mail1.backend.net.nz)
 by buxtehude.debian.org with esmtp (Exim 4.96)
 (envelope-from &lt;richard@walnut.gen.nz&gt;) id 1vCUBg-009qSn-0z
 for submit@bugs.debian.org; Sat, 25 Oct 2025 02:39:24 +0000
Received: from diamond.lan.walnut.gen.nz (unknown [91.208.233.139])
 by mailhub-mail1.backend.net.nz (Postfix) with ESMTPS id D94D5476E5;
 Sat, 25 Oct 2025 15:31:32 +1300 (NZDT)
Received: by diamond.lan.walnut.gen.nz (Postfix, from userid 1000)
 id 72B71E12E3; Sat, 25 Oct 2025 15:31:32 +1300 (NZDT)
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Richard Hector &lt;richard@walnut.gen.nz&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: lxc-templates: included config file has config for cgroup1 on a
 cgroup2 system
Message-ID: &lt;176135949243.420414.6760488554898381511.reportbug@diamond.lan.walnut.gen.nz&gt;
X-Mailer: reportbug 12.0.0
Date: Sat, 25 Oct 2025 15:31:32 +1300
X-Greylist: delayed 459 seconds by postgrey-1.37 at buxtehude;
 Sat, 25 Oct 2025 02:39:24 UTC
Delivered-To: submit@bugs.debian.org

Package: lxc-templates
Version: 3.0.4.48.g4765da8-1+deb12u1
Severity: normal

Dear Maintainer,

lxc-templates includes configuration files such as
/usr/share/lxc/config/debian.common.conf, which are included by the
specific container config.

The above file includes lines such as:
lxc.cgroup.devices.allow = c 254:0 rm

I believe these are for cgroup1 systems, but these files are still
being installed on cgroup2 systems.

I'm no expert, but I suspect that's the reason for these warnings:

lxc max-wp1 20241104110429.560 WARN     cgfsng - ../src/lxc/cgroups/cgfsng.c:cgfsng_setup_limits_legacy:3155 - Invalid argument - Ignoring legacy cgroup limits on pure cgroup2 system

That may be just a warning, but presumably this is ineffective, and
there should be equivalent cgroup2 lines somewhere?

I'm still running bookworm, but I checked the trixie package, and that
file has the same entries in it.

Cheers,
Richard
]