diff --git a/templates/scripts/includes/deployment.sh b/templates/scripts/includes/deployment.sh index e78d4bb..3292194 100755 --- a/templates/scripts/includes/deployment.sh +++ b/templates/scripts/includes/deployment.sh @@ -1834,6 +1834,12 @@ EOT 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