Permalink
Browse files

Correctly sort custom partitions.

  #477334
  • Loading branch information...
skx committed Apr 30, 2008
1 parent 3717d0c commit 15436cc018465222510547a930d211f38509d40a
Showing with 1 addition and 3 deletions.
  1. +1 −3 bin/xen-create-image
View
@@ -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;
}

0 comments on commit 15436cc

Please sign in to comment.