diff options
Diffstat (limited to 'scripts/build')
-rwxr-xr-x | scripts/build/chroot_live-packages | 5 |
1 files changed, 4 insertions, 1 deletions
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 |