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

Package: cgroupfs-mount; Maintainer for cgroupfs-mount is Tanya <>; Source for cgroupfs-mount is src:cgroupfs-mount.

Reported by: Ryutaroh Matsumoto <>

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

Severity: normal

Tags: debian

Found in version 1.4

Fixed in version 1.4+devuan1


Forwarded to

Full log

Message #8 received at (full text, mbox, reply):

Received: (at 428) by; 25 Apr 2020 09:10:03 +0000
Return-Path: <>
Received: from []
	by with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Sat, 25 Apr 2020 09:10:02 +0000 (UTC)
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by (Postfix) with ESMTPS id B4EEBF609E5
	for <>; Sat, 25 Apr 2020 11:00:23 +0200 (CEST)
Received: from apollo.hindleynet ([]
	by with smtp (Exim 4.84_2)
	(envelope-from <>)
	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 <>
To:, Ryutaroh Matsumoto <>
Subject: Re: cgroupfs-mount: Cannot remove cgroupfs-mount
Message-ID: <>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <>
X-Debbugs-No-Ack: No Thanks
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
Control: tags -1 debian


On Sat, 25 Apr 2020 04:56:02 +0900 (JST) Ryutaroh Matsumoto <> 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

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.


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 <>.
Last modified: Fri Sep 30 09:46:01 2022;