Avoid hard-coded command paths

This commit is contained in:
Tiago Ilieve 2014-03-26 07:19:09 -03:00
parent 5a9e76c89d
commit b09b1239f1

View file

@ -60,6 +60,6 @@ class InstallGuestAdditions(Task):
'it should exit with status 1').format(status=status)
raise TaskError(msg)
log_call(['/usr/sbin/chroot', info.root, '/usr/sbin/service', 'vboxadd-service', 'stop'])
log_call(['chroot', info.root, 'service', 'vboxadd-service', 'stop'])
root.remove_mount(mount_path)
os.rmdir(mount_path)