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
(cherry picked from commit d4273164f6)
changes/20/38020/1
Mykola Malkov 8 years ago
parent f1b3ffb93d
commit 12a92dc293

@ -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

Loading…
Cancel
Save