mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
Comment the usage of log_call()
Add two comments to the InstallGuestAdditions, explaining why its return
code will not be checked with `log_check_call()` or even manually
grabbing the status informed by `log_call()` itself.
Previously discussed on the #55 issue and 43e3d96
commit.
This commit is contained in:
parent
a037acc673
commit
c22c6fe69d
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'])
|
||||
|
||||
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
|
||||
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'])
|
||||
root.remove_mount(mount_path)
|
||||
os.rmdir(mount_path)
|
||||
|
|
Loading…
Add table
Reference in a new issue