[Bug 1305395] Re: systemd-login service not started on package install
Martin Pitt
martin.pitt at ubuntu.com
Thu Apr 10 07:46:49 UTC 2014
Indeed the --no-start bit is entirely obsolete now. It was only needed
for intra-saucy upgrades while it was still in development, so I think
it's best to drop it entirely.
On a "real" system that works fine, I tested clean install and upgrades.
However, with that it now fails in LXC as mounting
/sys/fs/cgroup/systemd/ does not work in LXC (it only mounts read-only,
and mount exits with code 32), which is causing the package to fail to
install.
I think that's what Stéphane's cgroupmanager patch is supposed to
handle, isn't it? So we should change the upstart job to do something
like that:
- if ! mountpoint -q /sys/fs/cgroup/systemd; then
+ if [ ! -e /run/container_type ] && ! mountpoint -q /sys/fs/cgroup/systemd; then
# ... mount /sys/fs/cgroup/systemd
to avoid the failure. With that, the package installs cleanly in LXC,
too. Stéphane, does that look correct?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1305395
Title:
systemd-login service not started on package install
Status in “systemd” package in Ubuntu:
In Progress
Bug description:
In systemd 204-0ubuntu1, debian/rules was changed to not restart
logind on upgrades.
--- debian/rules 2013-05-22 12:09:59 +0000
+++ debian/rules 2013-06-04 10:46:58 +0000
@@ -179,7 +179,7 @@
dh_installinit --upstart-only --name=udevtrigger --no-start
dh_installinit --upstart-only --name=udevmonitor --no-start
dh_installinit --upstart-only --name=udev-fallback-graphics --no-start
- dh_installinit --name systemd-logind --upstart-only
+ dh_installinit --upstart-only --name systemd-logind --no-start
autoreconf:
cp -f /usr/share/gtk-doc/data/gtk-doc.make docs/
However, the particular usage here -- --no-start -- also means that
the service is not started on package install.
I found this because I managed to get my system into a state where
logind was not running after boot due to bug #1302264, and then was
confused that it still was not running after upgrading libpam-systemd.
I think what was wanted here was dh_installinit -r (--no-restart-on-
upgrade), not dh_installinit --no-start.
The other thing I notice is that the rationale for this is given as:
Do not restart logind on package upgrades, as the cgroup
organization changed in this version.
But the *old* prerm script is still going to have stopped logind
before the upgrade, which means that any users that upgraded from
raring to saucy would have had logind stopped on upgrade. If there
were bug reports about such problems at the time, maybe that explains
the behavior that was seen...
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: systemd-services 204-5ubuntu17
ProcVersionSignature: Ubuntu 3.13.0-19.40-generic 3.13.6
Uname: Linux 3.13.0-19-generic x86_64
ApportVersion: 2.14-0ubuntu1
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Apr 9 19:12:59 2014
InstallationDate: Installed on 2010-09-24 (1293 days ago)
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
SourcePackage: systemd
UpgradeStatus: Upgraded to trusty on 2013-10-23 (168 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1305395/+subscriptions
More information about the foundations-bugs
mailing list