Sort partition create actions before other unpartitioned devices. (#574379)
Ack.
On 04/06/2010 08:05 PM, David Lehman wrote:
---
storage/devicetree.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/storage/devicetree.py b/storage/devicetree.py
index 7295856..14239b0 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -601,6 +601,12 @@ class DeviceTree(object):
elif isinstance(a2.device, PartitionDevice) and
a1.device.partitioned:
ret = -1
+ elif isinstance(a1.device, PartitionDevice) and
+ not isinstance(a2.device, PartitionDevice):
+ ret = -1
+ elif isinstance(a2.device, PartitionDevice) and
+ not isinstance(a1.device, PartitionDevice):
+ ret = 1
else:
ret = 0
elif a1.isCreate():
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
|