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

Michael Biebl biebl at debian.org
Fri Oct 23 16:26:20 BST 2015


Am 23.10.2015 um 17:10 schrieb Martin Pitt:
> Hello Stephan,
> 
> Stephan Suerken [2015-10-23 13:32 +0000]:
>> 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.
> 
> That looks right -- systemctl is supposed to fail for a nonexisting
> script. I don't even consider that a bug, but a fix.

Well, but it also fails for real services now:

v227
# systemctl status systemd-timesyncd.service
Failed to connect to bus: No such file or directory
# echo $?
1

v215 (jessie)
# systemctl status systemd-timesyncd.service
Running in chroot, ignoring request.
# echo $?
0

-- 
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/3c911cdb/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list