[systemd-devel] fix return code for systemctl in chroot

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Fri Oct 19 08:41:27 PDT 2012


On 10/17/2012 04:03 PM, Christian Hesse wrote:
> Hello everybody,
> 
> if 'systemctl enable' (and friends) is run inside chroot it always
> exits with a bad return code. unit_file_enable() returns the number of
> symlink rules that were supposed to be created. So resetting r to 0 and
> exiting gracefully should be the correct way. At least it fixes it for me, my
> supposed patch is attached.
> 
Applied.

Zbyszek


More information about the systemd-devel mailing list