Bug#729907: logind fails to create sessions when running on a kernel without cgroups support

Michael Biebl biebl at debian.org
Fri Jan 29 21:36:22 GMT 2016


On Mon, 17 Nov 2014 14:09:30 +0100 intrigeri <intrigeri at debian.org> wrote:
> Control: retitle -1 logind should report clearer error messages when the kernel doesn't support cgroups
> 
> Hi Emilio,
> 
> Emilio Pozuelo Monfort wrote (18 Nov 2013 19:43:14 GMT) :
> > As you can see on bug #729674 and #729877, when running with a kernel without
> > cgroup support, CreateSession() fails on logind. The problem is that logind
> > looks for /proc/$pid/cgroup, which is missing (though /proc/$pid exists) and it
> > confusingly returns ESRCH.
> 
> > I don't know if logind requires a kernel with cgroups to create sessions, but if
> > that's not possible, at least a better error message would be nice, or maybe
> > logind should check for this at init and exit.
> 
> /usr/share/doc/systemd/README.gz makes it clear that the kernel must
> support cgroups, so this behaviour is expected. Now, I agree that it
> would be nice if logind (and friends) reported clearer errors whenever
> a needed kernel feature is missing. Retitling accordingly.
> 
> Next step for anyone interested is to check if things have improved
> upstream in this area since v215, and if not, to check if there's
> a ticket in their bug tracker.

I think we should start adding checks to systemd.preinst and fail if not
existent.
Testing for cgroups support would be high on the list.



-- 
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://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20160129/f092a468/attachment-0001.sig>


More information about the Pkg-systemd-maintainers mailing list