FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 11-04-2011, 06:02 PM
David Lehman
 
Default Include disklabel type in grub2 device names.

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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 01:46 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org