summaryrefslogtreecommitdiffstats
path: root/instdata.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2008-03-20 16:51:12 -0400
committerJeremy Katz <katzj@redhat.com>2008-03-20 16:51:12 -0400
commit46de99a245db4778b70dd8c33972f918f39f3780 (patch)
treea06415a7aa5324f95fb6f76c0be739c2d78fa4a1 /instdata.py
parente1de255048cfed5dc120b6e7f77dfc65ebfaeaba (diff)
downloadanaconda-46de99a245db4778b70dd8c33972f918f39f3780.tar.gz
anaconda-46de99a245db4778b70dd8c33972f918f39f3780.tar.xz
anaconda-46de99a245db4778b70dd8c33972f918f39f3780.zip
Handle /dev being on hard drive devices in the second stage
Sometimes, we can have a device without the leading /dev (method= or stage2= for compatibility) and doing strrchr breaks on cciss too. So just pass whatever we got to the second stage and deal with it where we can at least use python string handling
Diffstat (limited to 'instdata.py')
-rw-r--r--instdata.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/instdata.py b/instdata.py
index bf5300a04..3bc79fc9d 100644
--- a/instdata.py
+++ b/instdata.py
@@ -103,6 +103,8 @@ class InstallData:
elif self.anaconda._loaderMethodstr.startswith("hd:"):
method = self.anaconda._loaderMethodstr[3:]
device = method.split(":", 3)[0]
+ if device.startswith("/dev/"):
+ device = device[5:]
self.partitions.protected = [device]
def setInstallProgressClass(self, c):