From 2ae5647fa90eb862cbf49fb0bdcd40c814f5d75f Mon Sep 17 00:00:00 2001 From: Anders Ingemann Date: Sat, 10 Aug 2013 23:02:44 +0200 Subject: [PATCH] Remove hardcoded /dev/loop0 from ONE grub task --- providers/one/tasks/boot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/providers/one/tasks/boot.py b/providers/one/tasks/boot.py index ec55a61..3bbfda5 100644 --- a/providers/one/tasks/boot.py +++ b/providers/one/tasks/boot.py @@ -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, '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'])