diff options
author | Doug Chapman <dchapman@redhat.com> | 2009-05-15 09:10:53 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2009-05-15 09:10:53 +0200 |
commit | 7316b263561cf6e40e733aea3482ef319baa52c6 (patch) | |
tree | 0fb390bcc6bd8b69089ff09035c8433199c306fc | |
parent | 3f69d901e4cbe298f6f9c9ba8fff53752f31d285 (diff) | |
download | anaconda-7316b263561cf6e40e733aea3482ef319baa52c6.tar.gz anaconda-7316b263561cf6e40e733aea3482ef319baa52c6.tar.xz anaconda-7316b263561cf6e40e733aea3482ef319baa52c6.zip |
Fix detection of cciss disks (#499408)
Since cciss device names have a subdirectory (i.e. cciss/c0d0p1) they are
represented in sysfs with a ! so that it doesn't incorrectly have an extra
subdir in the sysfs namespace. When anaconda gets the device name from sysfs
it was trying to lookup the name with a ! but anaconda stores them with the /
in the name.
-rw-r--r-- | storage/devicetree.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/devicetree.py b/storage/devicetree.py index f78481f98..34a50e10e 100644 --- a/storage/devicetree.py +++ b/storage/devicetree.py @@ -1021,6 +1021,7 @@ class DeviceTree(object): device = None disk_name = os.path.basename(os.path.dirname(sysfs_path)) + disk_name = disk_name.replace('!','/') disk = self.getDeviceByName(disk_name) if disk is None: |