Bug#755581: systemd: emergency mode infinite loop after systemd upgrade

Johannes Schauer j.schauer at email.de
Tue Jul 22 08:45:40 BST 2014


Package: systemd
Version: 208-6
Severity: normal

Hi,

after I upgraded systemd today my system became unbootable. I removed
the "quiet" option from the kernel boot options and after waiting a
while I can see the following:

[ TIME ] Timed out waiting for device dev-mapper-volumegroup/x2dhome.device.
[DEPEND] Dependency failed for /home
[DEPEND] Dependency failed for Local File Systems.
Welcome to emergency mode! After logging in, type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, "systemctl default" to try again
to boot boot into default mode.
Welcome to emergency mode! After logging in, type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, "systemctl default" to try again
to boot boot into default mode.
Welcome to emergency mode! After logging in, type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, "systemctl default" to try again
to boot boot into default mode.

The last message seems to repeat infinitely which is not very helpful. I
was able to boot with init=/bin/bash, get network up and install
sysvinit-core to get around the problem and now my system boots again.

This bugreport serves two purposes. Firstly I'd like to find out why my
system became unbootable after upgrading systemd. I see that others ran
into related problems with their system becoming unbootable with
dmcrypt/luks enabled but I'm not sure whether this is the same problem
here.

Secondly, it is not very helpful to have the emergency mode message
spawn in an (seemingly) infinite loop. I should not have to boot with
init=/bin/bash. Instead, the emergency mode should start and allow me to
analyze the situation.

To solve the first problem, here is my fstab:

--%<-----------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/mapper/volumegroup-root /               ext4    errors=remount-ro 0       1
# /boot was on /dev/sda3 during installation
#UUID=65704be4-677a-48f7-8a4e-259b4d0570c7 /boot           ext2    defaults        0       2
UUID=ac034ff5-d28a-4ad1-8bac-97d554395e3e /boot           ext2    defaults        0       2
/dev/mapper/volumegroup-home /home           ext4    defaults        0       2
/dev/mapper/volumegroup-swap none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0
#/dev/sdb1       /mnt auto defaults,user,dmask=022,fmask=133 0 0
cgroup          /sys/fs/cgroup         cgroup  defaults        0       0
tmpfs   /tmp         tmpfs   nodev,nosuid,size=8G          0  0
tmpfs   /run         tmpfs   nodev,nosuid,size=8G          0  0
tmpfs   /var/lib/schroot/unpack/         tmpfs   nodev,nosuid,size=8G          0  0
#/dev/mmcblk0p1  /media/sdcard   auto user,rw,umask=111,dmask=000 0 0
#kirkwood:/mnt/series /media/series nfs nolock 0 0
#kirkwood:/mnt/movies /media/movies nfs nolock 0 0
-->%-----------------------------------------------------------------------

The system boots fine with sysvinit. Where is the problem?

cheers, josch


-- Package-specific info:
--------------
systemd-delta:
--------------
[EXTENDED]   /lib/systemd/system/cups.socket -> /etc/systemd/system/cups.socket.d/cupsd-listen.conf

1 overridden configuration files found.

--------------
Contents of /var/lib/systemd/deb-systemd-helper-enabled:
--------------
==> /var/lib/systemd/deb-systemd-helper-enabled/cups.socket.dsh-also <==
/etc/systemd/system/sockets.target.wants/cups.socket

==> /var/lib/systemd/deb-systemd-helper-enabled/virtlockd.socket.dsh-also <==
/etc/systemd/system/sockets.target.wants/virtlockd.socket

==> /var/lib/systemd/deb-systemd-helper-enabled/gpsd.socket.dsh-also <==
/etc/systemd/system/sockets.target.wants/gpsd.socket

==> /var/lib/systemd/deb-systemd-helper-enabled/sockets.target.wants/cups.socket <==

==> /var/lib/systemd/deb-systemd-helper-enabled/sockets.target.wants/virtlockd.socket <==

==> /var/lib/systemd/deb-systemd-helper-enabled/sockets.target.wants/gpsd.socket <==

==> /var/lib/systemd/deb-systemd-helper-enabled/sockets.target.wants/lvm2-lvmetad.socket <==

==> /var/lib/systemd/deb-systemd-helper-enabled/binfmt-support.service.dsh-also <==
/etc/systemd/system/multi-user.target.wants/binfmt-support.service

==> /var/lib/systemd/deb-systemd-helper-enabled/cups.path.dsh-also <==
/etc/systemd/system/multi-user.target.wants/cups.path

==> /var/lib/systemd/deb-systemd-helper-enabled/lvm2-activation-early.service.dsh-also <==
/etc/systemd/system/local-fs.target.wants/lvm2-activation-early.service

==> /var/lib/systemd/deb-systemd-helper-enabled/rsyslog.service.dsh-also <==
/etc/systemd/system/multi-user.target.wants/rsyslog.service
/etc/systemd/system/syslog.service

==> /var/lib/systemd/deb-systemd-helper-enabled/apt-cacher-ng.service.dsh-also <==
/etc/systemd/system/multi-user.target.wants/apt-cacher-ng.service

==> /var/lib/systemd/deb-systemd-helper-enabled/gpsd.service.dsh-also <==
/etc/systemd/system/sockets.target.wants/gpsd.socket

==> /var/lib/systemd/deb-systemd-helper-enabled/lvm2-activation.service.dsh-also <==
/etc/systemd/system/local-fs.target.wants/lvm2-activation.service

==> /var/lib/systemd/deb-systemd-helper-enabled/syslog.service <==

==> /var/lib/systemd/deb-systemd-helper-enabled/lvm2-lvmetad.socket.dsh-also <==
/etc/systemd/system/sockets.target.wants/lvm2-lvmetad.socket

==> /var/lib/systemd/deb-systemd-helper-enabled/libvirt-guests.service.dsh-also <==
/etc/systemd/system/multi-user.target.wants/libvirt-guests.service

==> /var/lib/systemd/deb-systemd-helper-enabled/haproxy.service.dsh-also <==
/etc/systemd/system/multi-user.target.wants/haproxy.service

==> /var/lib/systemd/deb-systemd-helper-enabled/cron.service.dsh-also <==
/etc/systemd/system/multi-user.target.wants/cron.service

==> /var/lib/systemd/deb-systemd-helper-enabled/libvirt-bin.service.dsh-also <==
/etc/systemd/system/multi-user.target.wants/libvirt-bin.service

==> /var/lib/systemd/deb-systemd-helper-enabled/virtlockd.service.dsh-also <==
/etc/systemd/system/sockets.target.wants/virtlockd.socket

==> /var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/libvirt-bin.service <==

==> /var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/rsyslog.service <==

==> /var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/apt-cacher-ng.service <==

==> /var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/binfmt-support.service <==

==> /var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/haproxy.service <==

==> /var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/libvirt-guests.service <==

==> /var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/cron.service <==

==> /var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/cups.path <==

==> /var/lib/systemd/deb-systemd-helper-enabled/cups.service.dsh-also <==
/etc/systemd/system/sockets.target.wants/cups.socket
/etc/systemd/system/multi-user.target.wants/cups.path
/etc/systemd/system/printer.target.wants/cups.service

==> /var/lib/systemd/deb-systemd-helper-enabled/local-fs.target.wants/lvm2-activation-early.service <==

==> /var/lib/systemd/deb-systemd-helper-enabled/local-fs.target.wants/lvm2-activation.service <==

==> /var/lib/systemd/deb-systemd-helper-enabled/printer.target.wants/cups.service <==

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages systemd depends on:
ii  acl                  2.2.52-1
ii  adduser              3.113+nmu3
ii  initscripts          2.88dsf-53.2
ii  libacl1              2.2.52-1
ii  libaudit1            1:2.3.7-1
ii  libblkid1            2.20.1-5.8
ii  libc6                2.19-7
ii  libcap2              1:2.22-1.2
ii  libcap2-bin          1:2.22-1.2
ii  libcryptsetup4       2:1.6.4-4
ii  libdbus-1-3          1.8.6-1
ii  libgcrypt11          1.5.3-4
ii  libkmod2             18-1
ii  liblzma5             5.1.1alpha+20120614-2
ii  libpam0g             1.1.8-3
ii  libselinux1          2.3-1
ii  libsystemd-daemon0   208-6
ii  libsystemd-journal0  208-6
ii  libsystemd-login0    208-6
ii  libudev1             208-6
ii  libwrap0             7.6.q-25
ii  sysv-rc              2.88dsf-53.2
ii  udev                 208-6
ii  util-linux           2.20.1-5.8

Versions of packages systemd recommends:
pn  libpam-systemd  <none>

Versions of packages systemd suggests:
pn  systemd-ui  <none>

-- no debconf information

-- debsums errors found:
sh: 1: /usr/sbin/dpkg-divert: not found



More information about the Pkg-systemd-maintainers mailing list