summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
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