summaryrefslogtreecommitdiffstats
path: root/rescue
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-05-23 18:28:29 +0000
committerThierry Vignaud <tv@mageia.org>2012-05-23 18:28:29 +0000
commitb51c5a9c5b00c35244cbad23e27fde8f949b5f74 (patch)
tree23f953541e658976c429ea0a0abe8609e61fcc13 /rescue
parent75324906f7f0da9fb9245027235b5b499830b264 (diff)
downloaddrakx-backup-do-not-use-b51c5a9c5b00c35244cbad23e27fde8f949b5f74.tar
drakx-backup-do-not-use-b51c5a9c5b00c35244cbad23e27fde8f949b5f74.tar.gz
drakx-backup-do-not-use-b51c5a9c5b00c35244cbad23e27fde8f949b5f74.tar.bz2
drakx-backup-do-not-use-b51c5a9c5b00c35244cbad23e27fde8f949b5f74.tar.xz
drakx-backup-do-not-use-b51c5a9c5b00c35244cbad23e27fde8f949b5f74.zip
default to the higher version when there're several mga roots (mga#6003)
Diffstat (limited to 'rescue')
-rw-r--r--rescue/NEWS2
-rwxr-xr-xrescue/guessmounts2
2 files changed, 4 insertions, 0 deletions
diff --git a/rescue/NEWS b/rescue/NEWS
index 46f368d85..d822eb9ac 100644
--- a/rescue/NEWS
+++ b/rescue/NEWS
@@ -1,3 +1,5 @@
+- default to the higher version when there're several mga roots (mga#6003)
+
Version 1.38 - 11 May 2012, by Thierry Vignaud
- include missing modules when SMB appears in fstab (mga#5850)
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);