shared/unit-file: fix resolution of absoulute symlinks with --root
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 30 Apr 2020 10:02:44 +0000 (12:02 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 30 Apr 2020 10:02:44 +0000 (12:02 +0200)
commitb8239b9c501f6d08e918e74f0af301b2cc472b89
treeb6fcd7566661ec21b20222841966cdea35ebc8ef
parent26b8190841fa6e00a66a4a46b343bde117b855fc
shared/unit-file: fix resolution of absoulute symlinks with --root

$ systemctl --no-pager --root /tmp/root2/ cat ctrl-alt-del.target
Failed to resolve symlink /tmp/root2/etc/systemd/system/ctrl-alt-del.target pointing to /usr/lib/systemd/system/reboot.target, ignoring: Channel number out of range
...
src/shared/unit-file.c