From 5021fd231370d150ce5a1cf815619376c89c4241 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 31 Oct 2012 07:45:55 +0100 Subject: Making sysvinit removal on systemd systems conditional, newer bootstraps might not always pull in sysvinit packages anymore. --- scripts/build/chroot_live-packages | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/build') diff --git a/scripts/build/chroot_live-packages b/scripts/build/chroot_live-packages index 58cc4761c..d2d60888a 100755 --- a/scripts/build/chroot_live-packages +++ b/scripts/build/chroot_live-packages @@ -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 -- cgit v1.2.3