Bug#771204: getty1 is not correctly enabled during upgrade from wheezy -> jessie when systemd is the active PID1

Michael Biebl biebl at debian.org
Thu Nov 27 15:15:25 GMT 2014


Package: systemd
Version: 215-6
Severity: important

During a dist-upgrade from wheezy to jessie, where systemd (v44) is the
active PID 1, I noticed the following error message in systemd.postinst:

+ [ configure = triggered ]
+ dpkg --compare-versions 44-11+deb7u4 lt 214-1
+ systemctl enable getty at tty1.service
systemctl: /lib/x86_64-linux-gnu/libgpg-error.so.0: no version information available (required by /lib/x86_64-
linux-gnu/libgcrypt.so.20)
Failed to execute operation: No such file or directory
+ true


Ignoring the libgpg-error.so.0 error, which is [1], you'll notice that
"systemctl enable getty at tty1.service" [2] fails.
Looking at the journal, it logs the following message

Okt 10 09:44:15 debian systemd[1]: [/lib/systemd/system/getty at .service:47] Unknown lvalue 'DefaultInstance' in section 'Install'. Ignoring.

And indeed, DefaultInstance= is a new configurtion directive which is
not understood by v44. After running "systemctl daemon-reexec", the
"systemctl enable getty at tty1.service" call completes successfully.

Interestingly, if systemd is not the active PID1, the getty at tty1.service
unit is enabled correctly. I didn't expect "systemctl enable" to
require a running systemd as PID1. But apparently it does change it's
behaviour, which is a bit surprising.

In this particular case, the issue could be solved by running 
"systemctl enable getty at tty1.service" after "systemctl daemon-reexec",
i.e. somewhere after line 134 [3].

Filed with severity important though I think this should be addressed
for jessie. Not having a getty on tty1 is very confusing and if dbus is
not installed, currently there would be no getty to login.


Michael


[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=771100
[2] http://anonscm.debian.org/cgit/pkg-systemd/systemd.git/tree/debian/systemd.postinst#n25
[3] http://anonscm.debian.org/cgit/pkg-systemd/systemd.git/tree/debian/systemd.postinst#n134
-- Package-specific info:

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

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

Versions of packages systemd depends on:
ii  acl             2.2.52-2
ii  adduser         3.113+nmu3
ii  initscripts     2.88dsf-58
ii  libacl1         2.2.52-2
ii  libaudit1       1:2.4-1
ii  libblkid1       2.25.2-3
ii  libc6           2.19-13
ii  libcap2         1:2.24-6
ii  libcap2-bin     1:2.24-6
ii  libcryptsetup4  2:1.6.6-3
ii  libgcrypt20     1.6.2-4
ii  libkmod2        18-3
ii  liblzma5        5.1.1alpha+20120614-2+b1
ii  libpam0g        1.1.8-3.1
ii  libselinux1     2.3-2
ii  libsystemd0     215-6
ii  mount           2.25.2-3
ii  sysv-rc         2.88dsf-58
ii  udev            215-6
ii  util-linux      2.25.2-3

Versions of packages systemd recommends:
ii  dbus            1.8.12-1
ii  libpam-systemd  215-6

Versions of packages systemd suggests:
ii  systemd-ui  3-2

-- Configuration Files:
/etc/systemd/journald.conf changed [not included]

-- no debconf information

-- debsums errors found:
debsums: changed file /lib/systemd/system-generators/systemd-sysv-generator (from systemd package)



More information about the Pkg-systemd-maintainers mailing list