mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
Merge pull request #57 from myhro/fix-guestadditions
Comment the usage of log_call()
This commit is contained in:
commit
fe2f7724bc
1 changed files with 2 additions and 1 deletions
|
@ -51,9 +51,10 @@ class InstallGuestAdditions(Task):
|
||||||
root.add_mount(guest_additions_path, mount_path, ['-o', 'loop'])
|
root.add_mount(guest_additions_path, mount_path, ['-o', 'loop'])
|
||||||
|
|
||||||
install_script = os.path.join('/', mount_dir, 'VBoxLinuxAdditions.run')
|
install_script = os.path.join('/', mount_dir, 'VBoxLinuxAdditions.run')
|
||||||
|
# Don't check the return code of the scripts here, because 1 not necessarily means they have failed
|
||||||
from common.tools import log_call
|
from common.tools import log_call
|
||||||
log_call(['chroot', info.root, install_script, '--nox11'])
|
log_call(['chroot', info.root, install_script, '--nox11'])
|
||||||
|
# VBoxService process could be running, as it is not affected by DisableDaemonAutostart
|
||||||
log_call(['chroot', info.root, 'service', 'vboxadd-service', 'stop'])
|
log_call(['chroot', info.root, 'service', 'vboxadd-service', 'stop'])
|
||||||
root.remove_mount(mount_path)
|
root.remove_mount(mount_path)
|
||||||
os.rmdir(mount_path)
|
os.rmdir(mount_path)
|
||||||
|
|
Loading…
Add table
Reference in a new issue