Also supporting the other way around: removing systemd from a bootstrap and switching...
authorDaniel Baumann <daniel@debian.org>
Wed, 31 Oct 2012 06:48:26 +0000 (07:48 +0100)
committerDaniel Baumann <daniel@debian.org>
Wed, 31 Oct 2012 06:48:26 +0000 (07:48 +0100)
scripts/build/chroot_live-packages

index d2d6088..5ef36cb 100755 (executable)
@@ -58,6 +58,15 @@ case "${LB_INITSYSTEM}" in
                        Chroot chroot "dpkg --force-remove-essential --purge sysvinit"
                fi
                ;;
+
+       sysvinit)
+               _PACKAGES="${_PACKAGES} sysvinit"
+
+               if [ -e chroot/var/lib/dpkg/info/systemd-sysv.list ]
+               then
+                       Chroot chroot "dpkg --force-remove-essential --purge systemd systemd-sysv"
+               fi
+               ;;
 esac
 
 # Install live packages