summaryrefslogtreecommitdiff
path: root/scripts/build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-10-31 07:48:26 +0100
committerDaniel Baumann <daniel@debian.org>2012-10-31 07:48:26 +0100
commit3718d0db96e312d8476150eb2d97ea23a73f201b (patch)
treed5117df001614a1d2d8ecb7254c2a6fbca3590ea /scripts/build
parent5021fd231370d150ce5a1cf815619376c89c4241 (diff)
downloadvyos-live-build-3718d0db96e312d8476150eb2d97ea23a73f201b.tar.gz
vyos-live-build-3718d0db96e312d8476150eb2d97ea23a73f201b.zip
Also supporting the other way around: removing systemd from a bootstrap and switching to sysvinit for those distributions that default to systemd.
Diffstat (limited to 'scripts/build')
-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