• Bug#1070295: cgroupfs-mount: Fails to upgrade or remove if elogind is r

    From Lorenzo@21:1/5 to abe@debian.org on Fri May 3 15:20:01 2024
    Hi,

    On Fri, 03 May 2024 13:05:15 +0200 Axel Beckert <abe@debian.org> wrote:
    Package: cgroupfs-mount
    Severity: serious
    Version: 1.4+nmu1

    Hi,

    cgroupfs-mount fails to upgrade from 1.4 to 1.4+nmu1 for me (elogind + sysvinit) as follows:

    Setting up cgroupfs-mount (1.4+nmu1) ...
    Unmounting cgroupfs hierarchyumount: /sys/fs/cgroup/elogind: target
    is busy. invoke-rc.d: initscript cgroupfs-mount, action "restart"
    failed. dpkg: error processing package cgroupfs-mount (--configure):
    installed cgroupfs-mount package post-installation script subprocess returned error exit status 1



    Is this is a duplicate of #950986? https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=950986
    I bet the patch there would fix this bug too

    Lorenzo

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Lorenzo@21:1/5 to All on Fri May 3 15:20:01 2024
    On Fri, 3 May 2024 13:45:22 +0100 Mark Hindley <mark@hindley.org.uk>
    wrote:
    Axel,

    On Fri, May 03, 2024 at 01:05:15PM +0200, Axel Beckert wrote:
    P.S.: Given that Christian's NMU doesn't even touch the maintainer
    scripts, I suspect that this issue is also present in version 1.4. I
    though didn't notice it before then, so it might be related to
    recent elogind changes, hence Cc'ing the Debian Init System
    Diversity Team, too.

    Since this is the first cgroupfs-mount update since 2017 (which
    predates elogind's arrival in Debian) I suspect it has always been
    there, just uncovered by the cgroupfs-mount NMU.

    My gut reaction is that cgroupfs-mount shouldn't be unmounting and
    remounting cgroups on upgrade and it needs some dh_installinit magic

    --no-stop-on-upgrade should do it and is a good idea, but it fix the
    problem only when this package is restarted; it would still fail on
    removal.

    Lorenzo

    in d/rules.

    Mark



    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Mark Hindley@21:1/5 to Lorenzo on Fri May 3 18:40:01 2024
    Lorenzo,

    Thanks for the reminder.

    On Fri, May 03, 2024 at 03:10:57PM +0200, Lorenzo wrote:
    Is this is a duplicate of #950986? https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=950986
    I bet the patch there would fix this bug too

    Embarrassingly, that is my patch which I clearly have no recollection of! :-|

    Now I look, we have been shipping a variation on it in Devuan since 2020[1].

    Mark

    [1] https://git.devuan.org/devuan/cgroupfs-mount/commit/ff91abfaf3a5c5633744ea552084125ec6c68ce5

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)