[PATCH] 475083 - fix ejecting discs under kickstart

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux