diff options
Diffstat (limited to 'scripts/build/chroot_live-packages')
-rwxr-xr-x | scripts/build/chroot_live-packages | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build/chroot_live-packages b/scripts/build/chroot_live-packages index f3e52fc0f..a04e37667 100755 --- a/scripts/build/chroot_live-packages +++ b/scripts/build/chroot_live-packages @@ -53,7 +53,7 @@ case "${LB_INITSYSTEM}" in systemd) _PACKAGES="${_PACKAGES} systemd-sysv" - if [ -e chroot/var/lib/dpkg/info/sysvinit.list ] + if Chroot_has_package sysvinit then Chroot chroot "dpkg --force-remove-essential --purge sysvinit" fi @@ -62,7 +62,7 @@ case "${LB_INITSYSTEM}" in sysvinit) _PACKAGES="${_PACKAGES} sysvinit" - if [ -e chroot/var/lib/dpkg/info/systemd-sysv.list ] + if Chroot_has_package systemd-sysv then Chroot chroot "dpkg --force-remove-essential --purge systemd systemd-sysv" fi |