summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/build/chroot_live-packages9
1 files changed, 9 insertions, 0 deletions
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