Your message dated Tue, 23 Sep 2025 10:15:45 +0000
with message-id <[email protected]>
and subject line Bug#539352: fixed in sysvinit 3.15-2
has caused the Debian Bug report #539352,
regarding Please mount cgroup automatically
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
539352: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=539352
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: lxc
Version: 1:1.0.6-3
Severity: important
Tags: patch

cgroups is very critical to LXC. And even so it has delegated the task
to others (systemd and libvirt).

There are many users who don't use either. Please handle cgroup mounts
in lxc's init script.

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lxc depends on:
ii  init-system-helpers  1.21
ii  libapparmor1         2.9.0-1
ii  libc6                2.19-12
ii  libcap2              1:2.24-6
ii  libseccomp2          2.1.1-1
ii  libselinux1          2.3-2
ii  multiarch-support    2.19-12
ii  python3              3.4.2-1

Versions of packages lxc recommends:
ii  debootstrap  1.0.64
ii  openssl      1.0.1j-1
ii  rsync        3.1.1-2+b1

Versions of packages lxc suggests:
pn  lua5.2  <none>

-- Configuration Files:
/etc/init.d/lxc changed:
sysconfdir="/etc"
bindir="/usr/bin"
localstatedir="/var"
mount_cgroups="yes"
cgroups="cpuset cpu cpuacct devices freezer net_cls blkio perf_event"
! grep -qs cgroup_enable=memory /proc/cmdline || cgroups="$cgroups memory"
BOOTGROUPS="onboot,"
SHUTDOWNDELAY=5
OPTIONS=
STOPOPTS="-a -s"
test ! -r /lib/lsb/init-functions ||
        . /lib/lsb/init-functions
test ! -r "$sysconfdir"/sysconfig/lxc ||
        . "$sysconfdir"/sysconfig/lxc
[ -x "$bindir"/lxc-autostart ] || exit 1
systemd_running()
{
    if [ -d /run/systemd/system ] ; then
        return 0
    fi
    return 1
}
mount_cgroups()
{
    if ! systemd_running
    then
        mount -t tmpfs cgroup_root /sys/fs/cgroup || return 1
        for M in $cgroups; do
            mkdir /sys/fs/cgroup/$M || return 1
            mount -t cgroup -o rw,nosuid,nodev,noexec,relatime,$M "cgroup_${M}" 
"/sys/fs/cgroup/${M}" || return 1
        done
    else
        log_warning_msg "Systemd running, skipping cgroup mount."
    fi
}
umount_cgroups()
{
    if ! systemd_running
    then
        for M in $cgroups; do
            umount "cgroup_${M}"
            rmdir /sys/fs/cgroup/$M
        done
        umount cgroup_root
    else
        log_warning_msg "Systemd running, skipping cgroup mount."
    fi
}
check_mount_cgroup_options() {
  if ! [ "$mount_cgroups" = "yes" ]; then
    return 1
  else
    return 0
  fi
}
wait_for_bridge()
{
    [ -f "$sysconfdir"/lxc/default.conf ] || { return 0; }
    which ifconfig >/dev/null 2>&1
    if [ $? = 0 ]; then
        cmd="ifconfig -a"
    else
        which ip >/dev/null 2>&1
        if [ $? = 0 ]; then
            cmd="ip link list"
        fi
    fi
    [ -n cmd ] || { return 0; }
    BRNAME=`grep '^[    ]*lxc.network.link' "$sysconfdir"/lxc/default.conf | 
sed 's/^.*=[       ]*//'`
    if [ -z "$BRNAME" ]; then
        return 0
    fi
    for try in `seq 1 30`; do
        eval $cmd |grep "^$BRNAME" >/dev/null 2>&1
        if [ $? = 0 ]; then
            return
        fi
        sleep 1
    done
}
mkdir -p /var/lock/subsys
case "$1" in
  start)
        if check_mount_cgroup_options; then
                if ! mount_cgroups; then
                        log_warning_msg "Cannot mount cgroups layout"
                        exit 1;
                fi
        fi
        [ ! -f "$localstatedir"/lock/subsys/lxc ] || { exit 0; }
        if [ -n "$BOOTGROUPS" ]
        then
                BOOTGROUPS="-g $BOOTGROUPS"
        fi
        # Start containers
        wait_for_bridge
        # Start autoboot containers first then the NULL group "onboot,".
        log_daemon_msg "Starting LXC autoboot containers: "
        "$bindir"/lxc-autostart $OPTIONS $BOOTGROUPS
        touch "$localstatedir"/lock/subsys/lxc
        ;;
  stop)
        if [ -n "$SHUTDOWNDELAY" ]
        then
                SHUTDOWNDELAY="-t $SHUTDOWNDELAY"
        fi
        if check_mount_cgroup_options; then
                umount_cgroups;
        fi
        # The stop is serialized and can take excessive time.  We need to avoid
        # delaying the system shutdown / reboot as much as we can since it's not
        # parallelized...  Even 5 second timout may be too long.
        log_daemon_msg "Stopping LXC containers: "
        "$bindir"/lxc-autostart $STOPOPTS $SHUTDOWNDELAY
        rm -f "$localstatedir"/lock/subsys/lxc
        ;;
  restart|reload|force-reload)
        $0 stop
        $0 start
        ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|force-reload}"
        exit 2
esac
exit $?

/etc/lxc/default.conf changed:
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = lxcbr0
lxc.cgroup.cpuset.cpus = 0,1
lxc.cgroup.cpu.shares = 1234
lxc.cgroup.memory.limit_in_bytes = 2147483648
lxc.cgroup.memory.soft_limit_in_bytes = 1073741824


-- no debconf information
25a26,30
> mount_cgroups="yes"
> 
> # For cgroups
> cgroups="cpuset cpu cpuacct devices freezer net_cls blkio perf_event"
> ! grep -qs cgroup_enable=memory /proc/cmdline || cgroups="$cgroups memory"
61a67,119
> 
> 
> 
> 
> systemd_running()
> {
>     if [ -d /run/systemd/system ] ; then
>         return 0
>     fi
>     return 1
> }
> 
> mount_cgroups()
> {
>     if ! systemd_running
>     then
>         mount -t tmpfs cgroup_root /sys/fs/cgroup || return 1
>         for M in $cgroups; do
>             mkdir /sys/fs/cgroup/$M || return 1
>             mount -t cgroup -o rw,nosuid,nodev,noexec,relatime,$M 
> "cgroup_${M}" "/sys/fs/cgroup/${M}" || return 1
>         done
>     else
>         log_warning_msg "Systemd running, skipping cgroup mount."
>     fi
> 
> }
> 
> umount_cgroups()
> {
>     if ! systemd_running
>     then
>         for M in $cgroups; do
>             umount "cgroup_${M}"
>             rmdir /sys/fs/cgroup/$M
>         done
>         umount cgroup_root
>     else
>         log_warning_msg "Systemd running, skipping cgroup mount."
>     fi
> }
> 
> check_mount_cgroup_options() {
>   if ! [ "$mount_cgroups" = "yes" ]; then
>     return 1
>   else
>     return 0
>   fi
> }
> 
> 
> 
> 
> 
99a158,165
> 
>       if check_mount_cgroup_options; then
>               if ! mount_cgroups; then
>                       log_warning_msg "Cannot mount cgroups layout"
>                       exit 1;
>               fi
>       fi
> 
117a184,187
>       fi
> 
>       if check_mount_cgroup_options; then
>               umount_cgroups;

--- End Message ---
--- Begin Message ---
Source: sysvinit
Source-Version: 3.15-2
Done: Mark Hindley <[email protected]>

We believe that the bug you reported is fixed in the latest version of
sysvinit, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Mark Hindley <[email protected]> (supplier of updated sysvinit package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 23 Sep 2025 08:29:46 +0100
Source: sysvinit
Architecture: source
Version: 3.15-2
Distribution: experimental
Urgency: medium
Maintainer: Debian sysvinit maintainers 
<[email protected]>
Changed-By: Mark Hindley <[email protected]>
Closes: 435287 539352 688412 1108969
Changes:
 sysvinit (3.15-2) experimental; urgency=medium
 .
   * Update inittab on new installations to assume 8bit clean environment.
     (Closes: #435287)
   * Emphasise that /etc/fstab overrides /etc/default/tmpfs. (Closes: #688412)
   * init-d-script:
     - Support TYPE=oneshot. (Closes: #1108969)
     - comply with style guidelines.
   * Add rcS option EXTRAKERNELFS and framework to support mounting
     additional kernel filesystems. Currently supported options are debugfs
     and cgroupfs2. (Closes: #539352)
Checksums-Sha1:
 9ee30fcde105a8e549516a2ccac19e304ef9a4c2 2382 sysvinit_3.15-2.dsc
 30e51c702c64d04686d81b1682896cde99fc908a 122696 sysvinit_3.15-2.debian.tar.xz
 a813609ca5d4f60f392fbadf059178e097a03916 8075 sysvinit_3.15-2_amd64.buildinfo
Checksums-Sha256:
 f21749720c760cfc7ca0db7efbbf5ace013d8b52c2de03b8ae32d85cbf69b9b8 2382 
sysvinit_3.15-2.dsc
 86b2a6c60c33254196d8fab6f9619dfe3b9b0e84fd846f29e299f8c312611ecc 122696 
sysvinit_3.15-2.debian.tar.xz
 662f0941e141738bc0fd9c231bdc38c8c2e0da77d49546be03f8b05653749bd6 8075 
sysvinit_3.15-2_amd64.buildinfo
Files:
 2a9d72d7cb9723c4bbdc6e03792f8153 2382 admin optional sysvinit_3.15-2.dsc
 f56711a64e2c91216052b445482152c1 122696 admin optional 
sysvinit_3.15-2.debian.tar.xz
 742e604a0bf7e7b0b8e94d852e39654f 8075 admin optional 
sysvinit_3.15-2_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEUGwVpCsK9aCoVCPu0opFvzKH1kkFAmjSarsACgkQ0opFvzKH
1kmnHw/+J7fwbVyFUdvrSbTSleWofgobEt69myWDXzaWm/GM/Nt96jvAXhhyOmMm
v0U4f5p6Teq1KmJo2zYw8+AQP5oZD/a0BKdUncK6LPyfPAAHQgTxMt2Fi0inhh55
xz4+55ckxqJHgkjVOo9Wm/KJPFRWoacznZU47zSGBdSoMmvxoj5zreT3SvtIETD5
3i9hNeda6qzGOboCerqctXbMvZilXeOTkCBxx4TUmaxesqiwwJeN3RB2Pi9N5C9S
0uEL+jAetjesUJjIesF9qFFoctXmCFnEWvS+irwo/DTOjMV1zAOTJ19ujKnTdboT
P7Liex4ltZQw2JwL1zlvs9mi82vEjnxnOSrGwElHA3LermGvSp3LkSnyQGsw8Lep
dxFvXiuEBSrtwazVeq3Zlm+0/6rfH97o5iVSY3RFUsHQxhzsJklRH45YRrTgCHNy
tX838HzstOBKI8qoz+E2+849C2ZiQrgtC8ycIOuQF38/8F6eDANNerhjinBXmn8m
Xbwt9gxRQdyI5b2rdPLVINhnUeo8z19xGIdSZFZKF40kwyjTp9rvkLfyn8HKFzY4
Xca/S+DMYNJQ+rZ3q2ymh+nVVf0pWC0P7xW1SZROgvphpyWgsLGd6ra48hF112cB
odpfBM542U+E/uNpvO7dJI+n9M4bOPrChjpmCBHcjRcaYRubDrs=
=Slso
-----END PGP SIGNATURE-----

Attachment: pgpxUtXC1M5m2.pgp
Description: PGP signature


--- End Message ---

Reply via email to