Making sysvinit removal on systemd systems conditional, newer bootstraps might not...
authorDaniel Baumann <daniel@debian.org>
Wed, 31 Oct 2012 06:45:55 +0000 (07:45 +0100)
committerDaniel Baumann <daniel@debian.org>
Wed, 31 Oct 2012 06:45:55 +0000 (07:45 +0100)
scripts/build/chroot_live-packages

index 58cc476..d2d6088 100755 (executable)
@@ -53,7 +53,10 @@ case "${LB_INITSYSTEM}" in
        systemd)
                _PACKAGES="${_PACKAGES} systemd-sysv"
 
-               Chroot chroot "dpkg --force-remove-essential --purge sysvinit"
+               if [ -e chroot/var/lib/dpkg/info/sysvinit.list ]
+               then
+                       Chroot chroot "dpkg --force-remove-essential --purge sysvinit"
+               fi
                ;;
 esac