Mageia Bugzilla – Attachment 2352 Details for
Bug 6003
Pre 2 Final - Rescue prefers mga1 system to mga2 when mounting partitions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
select "higher release number" root (mga first of course)
6003.diff (text/plain), 674 bytes, created by
Thierry Vignaud
on 2012-05-21 14:46:50 CEST
(
hide
)
Description:
select "higher release number" root (mga first of course)
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2012-05-21 14:46:50 CEST
Size:
674 bytes
patch
obsolete
>sort root fs by release number > >we really need to offer to ask which "/" to pick when there're several >(which is uneeded for most people but is a must have for testers :-) ) > >diff --git a/rescue/guessmounts b/rescue/guessmounts >index e3ef66b..e563000 100755 >--- a/rescue/guessmounts >+++ b/rescue/guessmounts >@@ -75,7 +75,7 @@ foreach (@$normal_parts) { > > # Try Mageia first: > if (@roots) { >- @roots = map { @$_ } partition { $_->{release} =~ /Mageia/ } @roots; >+ @roots = map { @$_ } partition { $_->{release} =~ /Mageia/ } sort { $b->{release} cmp $a->{release} } @roots; > my $selected = first(@roots); > $root = $selected->{dev}; > $fs = $selected->{fs};
sort root fs by release number we really need to offer to ask which "/" to pick when there're several (which is uneeded for most people but is a must have for testers :-) ) diff --git a/rescue/guessmounts b/rescue/guessmounts index e3ef66b..e563000 100755 --- a/rescue/guessmounts +++ b/rescue/guessmounts @@ -75,7 +75,7 @@ foreach (@$normal_parts) { # Try Mageia first: if (@roots) { - @roots = map { @$_ } partition { $_->{release} =~ /Mageia/ } @roots; + @roots = map { @$_ } partition { $_->{release} =~ /Mageia/ } sort { $b->{release} cmp $a->{release} } @roots; my $selected = first(@roots); $root = $selected->{dev}; $fs = $selected->{fs};
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 6003
: 2352 |
2354