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 > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 03-20-2009, 06:57 PM
Chris Lumens
 
Default Make some fixes to the rescue mode system selection UI (#489973, #489977).

(1) When there's more than one system to choose from, display the name of the
device, its release string, and the label if it exists.

(2) Return the right type when the user makes a selection from the combo box.
---
rescue.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/rescue.py b/rescue.py
index 688266f..96f492b 100644
--- a/rescue.py
+++ b/rescue.py
@@ -273,7 +273,10 @@ def runRescue(anaconda, instClass):

devList = []
for (device, relstr) in disks:
- devList.append(device.path)
+ if device.format.label:
+ devList.append("%s (%s) - %s" % (device.name, device.format.label, relstr))
+ else:
+ devList.append("%s - %s" % (device.name, relstr))

(button, choice) =
ListboxChoiceWindow(screen, _("System to Rescue"),
@@ -286,7 +289,7 @@ def runRescue(anaconda, instClass):
if button == string.lower (_("Exit")):
root = None
else:
- root = disks[choice][0]
+ root = disks[choice]

rootmounted = 0

--
1.6.1.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-20-2009, 07:13 PM
Chris Lumens
 
Default Make some fixes to the rescue mode system selection UI (#489973, #489977).

> > --- a/rescue.py
> > +++ b/rescue.py
> > @@ -273,7 +273,10 @@ def runRescue(anaconda, instClass):
> >
> > devList = []
> > for (device, relstr) in disks:
> > - devList.append(device.path)
> > + if device.format.label:
>
> if getattr(device.format, "label", None):

Okay, making this change and pushing.

- Chris

_______________________________________________
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 09:18 PM.

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