diff options
author | Daniel Baumann <daniel@debian.org> | 2012-10-31 07:48:26 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2012-10-31 07:48:26 +0100 |
commit | 3718d0db96e312d8476150eb2d97ea23a73f201b (patch) | |
tree | d5117df001614a1d2d8ecb7254c2a6fbca3590ea /scripts/build | |
parent | 5021fd231370d150ce5a1cf815619376c89c4241 (diff) | |
download | vyos-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-x | scripts/build/chroot_live-packages | 9 |
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 |