diff options
author | Jeremy Katz <katzj@redhat.com> | 2008-03-20 16:51:12 -0400 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2008-03-20 16:51:12 -0400 |
commit | 46de99a245db4778b70dd8c33972f918f39f3780 (patch) | |
tree | a06415a7aa5324f95fb6f76c0be739c2d78fa4a1 /instdata.py | |
parent | e1de255048cfed5dc120b6e7f77dfc65ebfaeaba (diff) | |
download | anaconda-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.py | 2 |
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): |