From d4273164f68885be1e4601f4c9c02432c89871ac Mon Sep 17 00:00:00 2001 From: Mykola Malkov Date: Tue, 8 Jan 2019 15:51:47 +0200 Subject: [PATCH] TT#44969 Remove vbox services from autostart Remove links manually as we are in chroot now so can not use systemctl calls Change-Id: Iebfe5952d403a2cab658264eb9b921c6354c39d8 --- templates/scripts/includes/deployment.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/scripts/includes/deployment.sh b/templates/scripts/includes/deployment.sh index 19ce777..4f3f6ff 100755 --- a/templates/scripts/includes/deployment.sh +++ b/templates/scripts/includes/deployment.sh @@ -1845,6 +1845,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