[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH 1/2] Sort virtio devices first
- From: Mark McLoughlin <markmc redhat com>
- To: anaconda-devel-list redhat com
- Cc: Mark McLoughlin <markmc redhat com>
- Subject: [PATCH 1/2] Sort virtio devices first
- Date: Fri, 9 May 2008 14:10:22 +0100
Signed-off-by: Mark McLoughlin <markmc redhat com>
---
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]