1
0
mirror of synced 2026-01-13 23:26:10 +00:00

Correctly sort custom partitions.

#477334
This commit is contained in:
Steve Kemp 2008-04-30 19:06:36 +01:00
parent 3717d0cc15
commit 15436cc018

View File

@ -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;
}