From 15436cc018465222510547a930d211f38509d40a Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 30 Apr 2008 19:06:36 +0100 Subject: [PATCH] Correctly sort custom partitions. #477334 --- bin/xen-create-image | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/xen-create-image b/bin/xen-create-image index 39176ca..2b2574f 100755 --- a/bin/xen-create-image +++ b/bin/xen-create-image @@ -2110,9 +2110,7 @@ EOF # This makes it easy to mount parent folders first # (e.g. /var before /var/tmp) # - @PARTITIONS = - sort { length $a->{'mountpoint'} cmp length $b->{'mountpoint'} } - @PARTITIONS; + @PARTITIONS = sort { length $a->{'mountpoint'} <=> length $b->{'mountpoint'} } @PARTITIONS; }