Mageia Bugzilla – Attachment 2354 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]
the same fix but step by step & commented
6003b.diff (text/plain), 482 bytes, created by
Thierry Vignaud
on 2012-05-21 14:55:26 CEST
(
hide
)
Description:
the same fix but step by step & commented
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2012-05-21 14:55:26 CEST
Size:
482 bytes
patch
obsolete
>diff --git a/rescue/guessmounts b/rescue/guessmounts >index e3ef66b..45e9182 100755 >--- a/rescue/guessmounts >+++ b/rescue/guessmounts >@@ -75,6 +75,9 @@ foreach (@$normal_parts) { > > # 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); > $root = $selected->{dev};
diff --git a/rescue/guessmounts b/rescue/guessmounts index e3ef66b..45e9182 100755 --- a/rescue/guessmounts +++ b/rescue/guessmounts @@ -75,6 +75,9 @@ foreach (@$normal_parts) { # 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); $root = $selected->{dev};
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 6003
:
2352
| 2354