set full path for binaries

This commit is contained in:
Olivier Sallou 2013-08-13 10:44:18 +02:00
parent 398a4da313
commit b6d716d414

View file

@ -30,6 +30,6 @@ class ConfigureGrub(Task):
os.chmod(script_dst, rwxr_xr_x) os.chmod(script_dst, rwxr_xr_x)
log_check_call(['/usr/sbin/chroot', info.root, 'update-initramfs', '-u']) log_check_call(['/usr/sbin/chroot', info.root, 'update-initramfs', '-u'])
# Install grub in mbr # Install grub in mbr
log_check_call(['grub-install', '--boot-directory='+info.root+"/boot/", info.bootstrap_device['path']]) log_check_call(['/usr/sbin/grub-install', '--boot-directory='+info.root+"/boot/", info.bootstrap_device['path']])
log_check_call(['/usr/sbin/chroot', info.root, '/usr/sbin/update-grub']) log_check_call(['/usr/sbin/chroot', info.root, '/usr/sbin/update-grub'])