[PATCH] Install bootloader to loop device in disk image installations. (#955202)
David Lehman
dlehman at redhat.com
Wed Sep 25 23:44:46 UTC 2013
GRUB2's magic doesn't work on /dev/mapper/<name>, but it does fine with
/dev/loop0.
---
pyanaconda/bootloader.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index 55a93a2..7d1c7bb 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -645,7 +645,13 @@ class BootLoader(object):
continue
if self.is_valid_stage1_device(device):
- self.stage1_device = device
+ if flags.imageInstall and device.isDisk:
+ # GRUB2 will install to /dev/loop0 but not to
+ # /dev/mapper/<image_name>
+ self.stage1_device = device.parents[0]
+ else:
+ self.stage1_device = device
+
break
if not self.stage1_device:
--
1.8.1.4
More information about the anaconda-patches
mailing list