summaryrefslogtreecommitdiffstats
path: root/rescue/guessmounts
diff options
context:
space:
mode:
Diffstat (limited to 'rescue/guessmounts')
-rwxr-xr-xrescue/guessmounts2
1 files changed, 2 insertions, 0 deletions
diff --git a/rescue/guessmounts b/rescue/guessmounts
index 0f5da6e48..14d7cd804 100755
--- a/rescue/guessmounts
+++ b/rescue/guessmounts
@@ -78,6 +78,8 @@ my ($root, $fs, @fstab);
# Try Mageia first:
if (@roots) {
+ # Order by release number:
+ @roots = sort { $b->{release} cmp $a->{release} } @roots;
# Then pick mga over mdv:
@roots = map { @$_ } partition { $_->{release} =~ /Mageia/ } @roots;
my $selected = first(@roots);