Bug#802780: systemd: systemctl 227 fails in chroots (instead of ignoring)

Michael Biebl biebl at debian.org
Fri Oct 23 15:56:57 BST 2015


Control: severity -1 important
Control: tags -1 confirmed

Am 23.10.2015 um 15:32 schrieb Stephan Suerken:
> Package: systemd
> Version: 227-2
> Severity: normal
> 
> Dear Maintainers,
> 
> with 227-2 (not found in 226-2), systemctl behaves differently
> in chroots for (at least) services that only provide a sysv init
> script, breaking package install or removal:
> 
> 226-2, jessie: Ignored, retval 0:
>  # root? systemctl restart non-existing.service
>  Running in chroot, ignoring request.
>  # root? systemctl restart wicd.service
>  Running in chroot, ignoring request.
> 
> 227-2, sid: Fails, retval 6:
>  # root? systemctl restart non-existing.service
>  Failed to restart non-existing.service: Unit non-existing.service failed to load: No such file or directory.
>  # root? systemctl restart non-existing.service
>  Failed to restart non-existing.service: Unit non-existing.service failed to load: No such file or directory.
> 
> As systemctl is also run implicitely via invoke.rc.d on postinst
> etc., this actually breaks package installation/removal on such
> systems (one current example is the wicd package).
> 
> Fwiw, calling systemctl as /sbin/runlevel still works fine:
> 
> # root? /sbin/runlevel
> Running in chroot, ignoring request.

I can confirm this behaviour. Bumped the severity to important, but I'm
inclined to make it RC. Martin?


-- 
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/20151023/43f82a59/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list