Remove hardcoded /dev/loop0 from ONE grub task

This commit is contained in:
Anders Ingemann 2013-08-10 23:02:44 +02:00
parent 6b2abd8634
commit 2ae5647fa9

View file

@ -33,7 +33,9 @@ class ConfigureGrub(Task):
log_check_call(['/usr/sbin/chroot', info.root, 'ln', '-s', '/boot/grub/grub.cfg', '/boot/grub/menu.lst']) log_check_call(['/usr/sbin/chroot', info.root, 'ln', '-s', '/boot/grub/grub.cfg', '/boot/grub/menu.lst'])
log_check_call(['/usr/sbin/chroot', info.root, 'update-initramfs', '-u']) log_check_call(['/usr/sbin/chroot', info.root, 'update-initramfs', '-u'])
log_check_call(['grub-install', '--boot-directory='+info.root+"/boot/", '/dev/loop0']) log_check_call(['grub-install',
'--boot-directory='+info.root+"/boot/",
info.bootstrap_device['partitions']['root_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'])