When calling update-rc.d via systemd-sysv-install, tell it to skip
creating any systemd symlinks as we want to handle those directly in
systemctl. Older update-rc.d versions will ignore that request, but
that's ok. This means we don't need a versioned dependency against
init-system-helpers.
Closes: #743217
run() {
if [ -n "$ROOT" ] && [ "$ROOT" != "/" ]; then
- chroot "$ROOT" /usr/sbin/update-rc.d "$@"
+ _SKIP_SYSTEMD_NATIVE=1 chroot "$ROOT" /usr/sbin/update-rc.d "$@"
else
- /usr/sbin/update-rc.d "$@"
+ _SKIP_SYSTEMD_NATIVE=1 /usr/sbin/update-rc.d "$@"
fi
}