summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-03-24 09:11:33 -0400
committerChris Lumens <clumens@redhat.com>2009-03-24 09:41:29 -0400
commit90006d07e51d962fbb2f062bb202c6027832f55d (patch)
tree6cc9ae6e75b163ea51a059b7624c849b4f2a4d12 /anaconda
parent283aa05cf327096dd332ce4c09756b6f64da2875 (diff)
downloadanaconda-90006d07e51d962fbb2f062bb202c6027832f55d.tar.gz
anaconda-90006d07e51d962fbb2f062bb202c6027832f55d.tar.xz
anaconda-90006d07e51d962fbb2f062bb202c6027832f55d.zip
getDeviceByName does not expect the CD device to start with "/dev/" (#491768).
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda3
1 files changed, 3 insertions, 0 deletions
diff --git a/anaconda b/anaconda
index 28893e29e..777970382 100755
--- a/anaconda
+++ b/anaconda
@@ -571,6 +571,9 @@ class Anaconda:
if not tree.startswith("/"):
tree = "/%s" %(tree,)
+ if device.startswith("/dev/"):
+ device = device[5:]
+
self.mediaDevice = device
self.methodstr = "cdrom://%s" % tree
else: