[PATCH 1/2] Sort virtio devices first

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

 



Signed-off-by: Mark McLoughlin <markmc@xxxxxxxxxx>
---
 isys/isys.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/isys/isys.py b/isys/isys.py
index bfd3792..f8858b9 100755
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -659,7 +659,7 @@ def compareDrives(first, second):
         type1 = 0
     elif first.startswith("sd"):
         type1 = 1
-    elif first.startswith("xvd"):
+    elif (first.startswith("vd") or first.startswith("xvd")):
         type1 = -1
     else:
         type1 = 2
@@ -668,7 +668,7 @@ def compareDrives(first, second):
         type2 = 0
     elif second.startswith("sd"):
 	type2 = 1
-    elif second.startswith("xvd"):
+    elif (second.startswith("vd") or second.startswith("xvd")):
         type2 = -1
     else:
 	type2 = 2
-- 
1.5.4.1

_______________________________________________
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