[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] 475083 - fix ejecting discs under kickstart
- From: Chris Lumens <clumens redhat com>
- To: anaconda-devel-list redhat com
- Subject: [PATCH] 475083 - fix ejecting discs under kickstart
- Date: Mon, 8 Dec 2008 11:30:50 -0500
Here's a stupid one. I'd like it if we had a better "/dev/whatever" vs.
"whatever" policy throughout anaconda, but until that day arrives,
here's another patch to handle both.
- Chris
diff --git a/isys/isys.py b/isys/isys.py
index c7cf25b..5894617 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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]