diff --git a/templates/scripts/includes/deployment.sh b/templates/scripts/includes/deployment.sh index f54f138..c44522c 100755 --- a/templates/scripts/includes/deployment.sh +++ b/templates/scripts/includes/deployment.sh @@ -1811,6 +1811,12 @@ vagrant_configuration() { echo "Commit /etc/* changes using etckeeper" chroot "$TARGET" etckeeper commit "Vagrant/VirtualBox changes on /etc/*" fi + + # disable vbox services so they are not run after reboot + # remove manually as we are in chroot now so can not use systemctl calls + # can be changed with systemd-nspawn + rm -f "${TARGET}/etc/systemd/system/multi-user.target.wants/vboxadd-service.service" + rm -f "${TARGET}/etc/systemd/system/multi-user.target.wants/vboxadd.service" } if "$VAGRANT" ; then