summaryrefslogtreecommitdiffstats
path: root/bootloader.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-07-19 23:55:49 +0000
committerJeremy Katz <katzj@redhat.com>2001-07-19 23:55:49 +0000
commiteb425d53724ca9c5eb3ea1539de87e84a198023f (patch)
treedb8ffba2fea0e01e4d713b15103e9687b3abecc8 /bootloader.py
parent15cd331c8e3218e1d747cd666109105da9ae43c9 (diff)
downloadanaconda-eb425d53724ca9c5eb3ea1539de87e84a198023f.tar.gz
anaconda-eb425d53724ca9c5eb3ea1539de87e84a198023f.tar.xz
anaconda-eb425d53724ca9c5eb3ea1539de87e84a198023f.zip
set the long or short label depending on which should be changed (49446)
Diffstat (limited to 'bootloader.py')
-rw-r--r--bootloader.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/bootloader.py b/bootloader.py
index d7b564234..4a31e52cd 100644
--- a/bootloader.py
+++ b/bootloader.py
@@ -85,8 +85,6 @@ class KernelArguments:
class BootImages:
# returns dictionary of (label, longlabel, devtype) pairs indexed by device
- # XXX note that after we've gone through the bootloader screen once we
- # lose the distinction between the two and label == longlabel
def getImages(self):
# return a copy so users can modify it w/o affecting us
@@ -96,8 +94,12 @@ class BootImages:
return dict
- def setImageLabel(self, dev, label):
- self.images[dev] = (label, label, self.images[dev][2])
+ def setImageLabel(self, dev, label, setLong = 0):
+ if setLong:
+ self.images[dev] = (self.images[dev][0], label, self.images[dev][2])
+ else:
+ self.images[dev] = (label, self.images[dev][0], self.images[dev][2])
+
# default is a device
def setDefault(self, default):