diff options
author | Hans de Goede <hdegoede@redhat.com> | 2009-04-03 16:05:02 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2009-04-06 19:49:45 +0200 |
commit | bcb3ff60c76d94c57b7523e739724854b68b7711 (patch) | |
tree | 23b98ec8180d4149cbcde9afba902e2aae12ec9b /bootloader.py | |
parent | 5b52455b64f73d05e338479d16b761792b4dfd9a (diff) | |
download | anaconda-bcb3ff60c76d94c57b7523e739724854b68b7711.tar.gz anaconda-bcb3ff60c76d94c57b7523e739724854b68b7711.tar.xz anaconda-bcb3ff60c76d94c57b7523e739724854b68b7711.zip |
Try to handle devices which live in a subdir of /dev properly
This hopefully fixes cciss (will test once an anaconda with this in
has hit rawhide, so I can use rhts to test). This is the second version of
this patch, this time it also does the / -> ! translation for sysfs names.
Diffstat (limited to 'bootloader.py')
-rw-r--r-- | bootloader.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bootloader.py b/bootloader.py index b9d995e4d..53dba2b74 100644 --- a/bootloader.py +++ b/bootloader.py @@ -28,6 +28,7 @@ import iutil import string from flags import flags from constants import * +from storage.devices import devicePathToName import gettext _ = lambda x: gettext.ldgettext("anaconda", x) @@ -125,7 +126,7 @@ def writeBootloader(anaconda): anaconda.id.bootloader.doUpgradeonly = 1 if bootType == "GRUB": anaconda.id.bootloader.useGrubVal = 1 - anaconda.id.bootloader.setDevice(theDev.split("/")[-1]) + anaconda.id.bootloader.setDevice(devicePathToName(theDev)) else: anaconda.id.bootloader.doUpgradeOnly = 0 |