Bug#785484: systemd: on Raspberry pi B+, several essential services fail, including systemd-logind

Michael Biebl biebl at debian.org
Mon May 18 18:40:12 BST 2015


reassign 785484 cgroup-bin
severity 785484 grave
found 785484 0.41-6
retitle 785484 cgroup-bin: breaks boot with systemd
thanks


Thanks for the further information, Bernhard.
I'm going to re-assign this bug report to cgroup-bin.

Am 18.05.2015 um 19:04 schrieb Bernhard Übelacker:
> Hello,
> as I got the same problem on my raspberry, probably I can give
> some details.
> 
> This is the situation I started:
> - put 2015-05-05-raspbian-wheezy.img on SD-card and booted
> - changed sources.list and did the upgrade
> - appended "systemd.debug-shell" to /boot/cmdline.txt
> - reboot
> 
> For some reason it looks like /etc/init.d/cgroup-bin is still
> installed even cgroup-bin is a transitional package.
> 
> This script tries to mount /sys/fs/cgroup/memory but seems to fail
> and it then unmounts /sys/fs/cgroup.
> Therefore systemd cannot create new cgroups or spawning
> processes cannot attach to them.

Right, I don't think umounting /sys/fs/cgroup is a sensible behaviour,
if the init cgroup-bin init script didn't mount it itself, thus breaking
systemd.
The cgroup-bin should behave more sensible if systemd is active.
If the init script needs to test for that, it can use
test -d /run/systemd/system, see

http://www.freedesktop.org/software/systemd/man/sd_booted.html


> By purging just cgroup-bin I got expected booting again.
> 
> cgroup-bin[455]: Kernel lacks cgroups or memory controller not available, not starting cgroups. ... (warning).
> systemd[1]: Failed to create cgroup /system.slice/ntp.service: No such file or directory
> systemd[481]: Failed at step CGROUP spawning /etc/init.d/ntp: No such file or directory
> 
> 
> Kind regards,
> Bernhard
> 
> 
> 
> root at raspberrypi:/# dpkg -l cgroup-bin
> Desired=Unknown/Install/Remove/Purge/Hold
> | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
> |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
> ||/ Name                       Version            Architecture       Description
> +++-==========================-==================-==================-=========================================================
> ii  cgroup-bin                 0.41-6             all                control and monitor control groups (transitional package)
> 
> 
> 
> root at raspberrypi:/# dpkg -L cgroup-bin
> /.
> /usr
> /usr/share
> /usr/share/doc
> /usr/share/doc/cgroup-bin
> /usr/share/doc/cgroup-bin/changelog.Debian.gz
> /usr/share/doc/cgroup-bin/copyright
> /etc/init.d/cgroup-bin
> 
> 
> 
> root at raspberrypi:/# ls -lisah /etc/init.d/cgroup-bin
> 36115 4.0K -rwxr-xr-x 1 root root 950 Dec 18  2013 /etc/init.d/cgroup-bin
> 
> 
> 
> root at raspberrypi:/# cat /etc/init.d/cgroup-bin
> #! /bin/sh                                                                                                                                                                                                                                   
> ### BEGIN INIT INFO                                                                                                                                                                                                                          
> # Provides:          init-cgroups                                                                                                                                                                                                            
> # Required-Start:    mountkernfs                                                                                                                                                                                                             
> # Required-Stop:                                                                                                                                                                                                                             
> # Default-Start:     2 3 4 5                                                                                                                                                                                                                 
> # Default-Stop:      0 1 6                                                                                                                                                                                                                   
> # Short-Description: Mounts cgroup filesystems                                                                                                                                                                                               
> ### END INIT INFO                                                                                                                                                                                                                            
>                                                                                                                                                                                                                                              
> PATH=/sbin:/bin
> 
> . /lib/lsb/init-functions
> 
> do_start () {
>         log_action_msg "Initializing cgroups"
>         mount -t tmpfs none /sys/fs/cgroup
>         mkdir /sys/fs/cgroup/memory
>         if ! mount -t cgroup none /sys/fs/cgroup/memory -o memory 2> /dev/null; then
>                 umount /sys/fs/cgroup
>                 log_warning_msg "Kernel lacks cgroups or memory controller not available, not starting cgroups."
>                 exit 0
>         fi
>         chmod a+r /sys/fs/cgroup/memory/memory.pressure_level
> }
> 
> case "$1" in
>   start)
>         do_start
>         ;;
>   restart|reload|force-reload)
>         echo "Error: argument '$1' not supported" >&2
>         exit 3
>         ;;
>   stop)
>         # No-op
>         ;;
>   *)
>         echo "Usage: $0 start|stop" >&2
>         exit 3
>         ;;
> esac
> 
> 
> 
> root at raspberrypi:/root# dpkg --purge cgroup-bin
> (Reading database ... 100744 files and directories currently installed.)
> Removing cgroup-bin (0.41-6) ...
> Purging configuration files for cgroup-bin (0.41-6) ...
> 
> 
> 
> root at raspberrypi:/root# reboot -f
>   # as regular reboot did not work at this point anymore
> 


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20150518/0d7d46e1/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list