[PATCH 1/7] Include disklabel type in grub2 device names.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Changes, eg: (hd0,2) to (hd0,gpt2) or (hd0,msdos2), depending on
hd0's disklabel type.

Related: rhbz#748121
---
 pyanaconda/bootloader.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index 547f7b8..0d041a7 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -1554,7 +1554,8 @@ class GRUB2(GRUB):
         if drive is not None:
             name = "(hd%d" % self.drives.index(drive)
             if hasattr(device, "disk"):
-                name += ",%d" % device.partedPartition.number
+                lt = device.disk.format.labelType
+                name += ",%s%d" % (lt, device.partedPartition.number)
             name += ")"
         return name
 
-- 
1.7.3.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux