[Pkg-sysvinit-devel] Bug#597338: Bug#597338: Do not unmount virtual/kernel fs as it breaks shutdown/reboot when using systemd

Kel Modderman kel at otaku42.de
Tue Sep 21 13:15:09 UTC 2010


On Sunday 19 September 2010 04:47:24 Michael Biebl wrote:
> Package: initscripts
> Version: 2.88dsf-12
> Severity: normal
> Tags: patch
> 
> Hi,
> 
> systemd is a new init systemd, which makes use of cgroups to track
> running processes.
> The cgroupfs is mounted below /sys/fs/cgroup as shown below:
> 
> $ mount | grep cgroup
> tmpfs on /sys/fs/cgroup type tmpfs (rw,noexec,nosuid,nodev,relatime,mode=755)
> cgroup on /sys/fs/cgroup/systemd type cgroup (rw,noexec,nosuid,nodev,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
> cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,noexec,nosuid,nodev,relatime,cpuset) 
> cgroup on /sys/fs/cgroup/ns type cgroup (rw,noexec,nosuid,nodev,relatime,ns)
> cgroup on /sys/fs/cgroup/cpu type cgroup (rw,noexec,nosuid,nodev,relatime,cpu)
> cgroup on /sys/fs/cgroup/cpuacct type cgroup (rw,noexec,nosuid,nodev,relatime,cpuacct)
> cgroup on /sys/fs/cgroup/devices type cgroup (rw,noexec,nosuid,nodev,relatime,devices)
> cgroup on /sys/fs/cgroup/freezer type cgroup (rw,noexec,nosuid,nodev,relatime,freezer)
> cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,noexec,nosuid,nodev,relatime,net_cls)
> 
> /etc/init.d/umountfs tries to unmount those file systems on shutdown. As
> systemd still uses them, it fails, which results in error messags during
> reboot/shutdown.
> 
> I discussed this with Tollef (Debian systemd maintainer) and Kay Sievers
> (udev and systemd upstream developer).
> 
> We came to the conclusion that virtual/kernel file systems
> should not be unmounted at all, as there is no good reason to do so.
> The attached patch does just that. It skips all mount points below
> /sys/*
> 
> I've been using this patch for some time now without any problems.
> 
> Please consider applying it in the next upload.

Thanks for the patch, it has been applied.

Kel.





More information about the Pkg-sysvinit-devel mailing list