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
changes/34/26034/2
Mykola Malkov 6 years ago
parent 9d4aa827c9
commit d4273164f6

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

Loading…
Cancel
Save