summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-12-08 11:39:13 -0500
committerChris Lumens <clumens@redhat.com>2008-12-08 11:49:18 -0500
commitf3731b6be1a20f12cd752c1abadf935da7596e34 (patch)
tree019bda9b17b00a64d19731f70f53ef95952c8d29 /isys
parent14d1f842bb340eea29dfaff5361173e11fdb9cc1 (diff)
downloadanaconda-f3731b6be1a20f12cd752c1abadf935da7596e34.tar.gz
anaconda-f3731b6be1a20f12cd752c1abadf935da7596e34.tar.xz
anaconda-f3731b6be1a20f12cd752c1abadf935da7596e34.zip
Handle both /dev/sr0 and sr0, since that's what cdromList gives (#475083).
Diffstat (limited to 'isys')
-rwxr-xr-xisys/isys.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/isys/isys.py b/isys/isys.py
index c7cf25b77..589461764 100755
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -788,6 +788,9 @@ def ext2HasJournal(device):
return hasjournal
def ejectCdrom(device):
+ if not os.path.exists(device):
+ device = "/dev/%s" % device
+
fd = os.open(device, os.O_RDONLY|os.O_NONBLOCK)
# this is a best effort