From bcb3ff60c76d94c57b7523e739724854b68b7711 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 3 Apr 2009 16:05:02 +0200 Subject: 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. --- bootloader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bootloader.py') 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 -- cgit