From 3718d0db96e312d8476150eb2d97ea23a73f201b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 31 Oct 2012 07:48:26 +0100 Subject: Also supporting the other way around: removing systemd from a bootstrap and switching to sysvinit for those distributions that default to systemd. --- scripts/build/chroot_live-packages | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/build/chroot_live-packages b/scripts/build/chroot_live-packages index d2d60888a..5ef36cb8b 100755 --- a/scripts/build/chroot_live-packages +++ b/scripts/build/chroot_live-packages @@ -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 -- cgit v1.2.3