# 2) and install stage1 on other members' disks/partitions too
# NOTES:
@@ -174,12 +176,14 @@ class x86BootloaderInfo(efiBootloaderInfo):
mdRaidDeviceRemap = (firstMdMemberDiskGrubbyName,
mdMemberBootDisk)
# now replace grub disk name part according to special device
# mapping
- old = self.grubbyDiskName(mdMemberBootDisk).strip('() ')
+ old = self.grubbyDiskName(
+ self.storage.devicetree.getDeviceByName(
+ mdMemberBootDisk)).strip('() ')
new = firstMdMemberDiskGrubbyName.strip('() ')
rootPartGrubbyName = rootPartGrubbyName.replace(old, new)
stage1TargetGrubbyName = stage1TargetGrubbyName.replace(old, new)
@@ -270,7 +274,7 @@ class x86BootloaderInfo(efiBootloaderInfo):
f.write("# all kernel and initrd paths are relative "
"to /, eg.
")
- f.write('# root %s
' % self.grubbyPartitionName(bootDevs[0].name))
+ f.write('# root %s
' % self.grubbyPartitionName(bootDevs[0]))
f.write("# kernel %svmlinuz-version ro root=%s
" % (cfPath, rootDev.path))
f.write("# initrd %sinitrd-[generic-]version.img
" % (cfPath))
f.write("#boot=/dev/%s
" % (grubTarget))
@@ -313,7 +317,7 @@ class x86BootloaderInfo(efiBootloaderInfo):
# we only want splashimage if they're not using a serial console
if os.access("%s/boot/grub/splash.xpm.gz" %(instRoot,), os.R_OK):
f.write('splashimage=%s%sgrub/splash.xpm.gz
'
- % (self.grubbyPartitionName(bootDevs[0].name), cfPath))
+ % (self.grubbyPartitionName(bootDevs[0]), cfPath))
f.write("hiddenmenu
")
@@ -327,7 +331,7 @@ class x86BootloaderInfo(efiBootloaderInfo):
initrd = self.makeInitrd(kernelTag, instRoot)