From: Michael Biebl Date: Sun, 18 Nov 2018 13:43:03 +0000 (+0100) Subject: systemctl: Tell update-rc.d to skip creating any systemd symlinks X-Git-Tag: debian/247.3-7+deb11u1~470 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=fc8847c12b63236904a28de360a40d437d9ef9d8;p=systemd.git systemctl: Tell update-rc.d to skip creating any systemd symlinks 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 --- diff --git a/debian/extra/systemd-sysv-install b/debian/extra/systemd-sysv-install index c69d7a371..7e90dc2bd 100755 --- a/debian/extra/systemd-sysv-install +++ b/debian/extra/systemd-sysv-install @@ -29,9 +29,9 @@ NAME="${2:-}" 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 }