Devuan bug report logs - #428
cgroupfs-mount: Cannot remove cgroupfs-mount

version graph

Package: cgroupfs-mount; Maintainer for cgroupfs-mount is Tanya <tanyadegurechaff@waifu.club>; Source for cgroupfs-mount is src:cgroupfs-mount.

Reported by: Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp>

Date: Fri, 24 Apr 2020 20:03:01 UTC

Severity: normal

Tags: debian

Found in version 1.4

Fixed in version 1.4+devuan1

Done: dak@devuan.org

Forwarded to https://bugs.debian.org/950986

Full log


🔗 View this message in rfc822 format

X-Loop: owner@bugs.devuan.org
Subject: bug#428: cgroupfs-mount: Cannot remove cgroupfs-mount
Reply-To: Mark Hindley <mark@hindley.org.uk>, 428@bugs.devuan.org
Resent-From: Mark Hindley <mark@hindley.org.uk>
Resent-To: devuan-bugs@lists.dyne.org
Resent-CC: devuan-dev@lists.dyne.org
X-Loop: owner@bugs.devuan.org
Resent-Date: Sat, 25 Apr 2020 09:18:02 +0000
Resent-Message-ID: <handler.428.B428.158780580310071@bugs.devuan.org>
Resent-Sender: owner@bugs.devuan.org
X-Devuan-PR-Message: followup 428
X-Devuan-PR-Package: cgroupfs-mount
X-Devuan-PR-Keywords: 
References: <20200425.045602.1002442102820500356.ryutaroh@ict.e.titech.ac.jp>
Received: via spool by 428-submit@bugs.devuan.org id=B428.158780580310071
          (code B ref 428); Sat, 25 Apr 2020 09:18:02 +0000
Received: (at 428) by bugs.devuan.org; 25 Apr 2020 09:10:03 +0000
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Sat, 25 Apr 2020 09:10:02 +0000 (UTC)
Received: from mx.hindley.org.uk (mohindley.plus.com [81.174.245.179])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by vm6.ganeti.dyne.org (Postfix) with ESMTPS id B4EEBF609E5
	for <428@bugs.devuan.org>; Sat, 25 Apr 2020 11:00:23 +0200 (CEST)
Received: from apollo.hindleynet ([192.168.1.3] helo=hindley.org.uk)
	by mx.hindley.org.uk with smtp (Exim 4.84_2)
	(envelope-from <mark@hindley.org.uk>)
	id 1jSGfY-0001eN-Ns; Sat, 25 Apr 2020 10:00:16 +0100
Received: (nullmailer pid 22371 invoked by uid 1000);
	Sat, 25 Apr 2020 09:00:16 -0000
Date: Sat, 25 Apr 2020 10:00:16 +0100
From: Mark Hindley <mark@hindley.org.uk>
To: 428@bugs.devuan.org, Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp>
Message-ID: <20200425090016.GI22592@hindley.org.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20200425.045602.1002442102820500356.ryutaroh@ict.e.titech.ac.jp>
User-Agent: Mutt/1.10.1 (2018-07-13)
X-Spam-Status: No, score=0.0 required=5.0 tests=FAKE_REPLY_C,SPF_PASS
	autolearn=disabled version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org
Control: tags -1 debian

Ryutaroh,

On Sat, 25 Apr 2020 04:56:02 +0900 (JST) Ryutaroh Matsumoto <ryutaroh@ict.e.titech.ac.jp> wrote:
> Package: cgroupfs-mount
> Version: 1.4
> Severity: normal
> 
> Dear Maintainer,
> 
> After installation of cgroupfs-mount, tring to remove it gives
> 
> Removing cgroupfs-mount (1.4) ...
> Unmounting cgroupfs hierarchyumount: /sys/fs/cgroup/elogind: target is busy.
> invoke-rc.d: initscript cgroupfs-mount, action "stop" failed.
> dpkg: error processing package cgroupfs-mount (--remove):
>  installed cgroupfs-mount package pre-removal script subprocess returned error exit status 32
> Errors were encountered while processing:
>  cgroupfs-mount
> E: Sub-process /usr/bin/dpkg returned an error code (1)

Thanks. Yes I bumped into this a couple of days ago.

The problem appears to be that /usr/bin/cgroupfs-umount tries to unmount all the
cgroups, even if it didn't originally create them. elogind creates its own cgroupfs and is
still using it.

As cgroupfs-mount is not a forked package and Devuan uses Debian's package
directly it needs to be fixed in Debian. There is already a Debian bug about it
at https://bugs.debian.org/950986.

I do have a workaround: cgroupfs-mount removes cleanly in single user mode (when
elogind is not running), or you can stop elogind first and then remove
cgroupfs-mount. However, this will also lose your logind sessions which may or
may not matter to you. Obviously new ones are created once elogind is restarted
and you log back in.

Mark

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Wed May 8 11:49:57 2024;