diff options
author | Daniel Baumann <daniel@debian.org> | 2012-10-31 07:45:55 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2012-10-31 07:45:55 +0100 |
commit | 5021fd231370d150ce5a1cf815619376c89c4241 (patch) | |
tree | 7e2c700c74813429309dc3c94880222a730e9bb3 /scripts/build/chroot_live-packages | |
parent | 63a275bedcdc52be483cb497c5c45e040669f658 (diff) | |
download | vyos-live-build-5021fd231370d150ce5a1cf815619376c89c4241.tar.gz vyos-live-build-5021fd231370d150ce5a1cf815619376c89c4241.zip |
Making sysvinit removal on systemd systems conditional, newer bootstraps might not always pull in sysvinit packages anymore.
Diffstat (limited to 'scripts/build/chroot_live-packages')
-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 |