Mageia Bugzilla – Attachment 6567 Details for
Bug 5690
After install from USB, it should be set as repo (not DVD)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Patch that configures urpmi correctly when installing from USB stick
fix-installer-urpmi-cfg-for-usb-stick.patch (text/plain), 825 bytes, created by
Martin Whitaker
on 2015-05-17 17:17:38 CEST
(
hide
)
Description:
Patch that configures urpmi correctly when installing from USB stick
Filename:
MIME Type:
Creator:
Martin Whitaker
Created:
2015-05-17 17:17:38 CEST
Size:
825 bytes
patch
obsolete
>diff --git a/perl-install/install/media.pm b/perl-install/install/media.pm >index 9d75ea2..abfaf35 100644 >--- a/perl-install/install/media.pm >+++ b/perl-install/install/media.pm >@@ -532,8 +532,8 @@ sub adjust_paths_in_urpmi_cfg { > $medium->{url} =~ s!^.*?/media/!$phys_m->{url}/!; > } elsif (member($phys_m->{method}, qw(disk nfs))) { > # use the real mount point: >- if ($medium->{url} =~ m!/tmp/image!) { >- $medium->{url} =~ s!/tmp/image!$phys_m->{mntpoint}!; >+ if ($medium->{url} =~ m!/tmp/image/media!) { >+ $medium->{url} =~ s!/tmp/image/media!$phys_m->{mntpoint}$phys_m->{rel_path}!; > } else { > # just remove $::prefix and we already have the real mount point: > $medium->{url} =~ s!^$::prefix!!;
diff --git a/perl-install/install/media.pm b/perl-install/install/media.pm index 9d75ea2..abfaf35 100644 --- a/perl-install/install/media.pm +++ b/perl-install/install/media.pm @@ -532,8 +532,8 @@ sub adjust_paths_in_urpmi_cfg { $medium->{url} =~ s!^.*?/media/!$phys_m->{url}/!; } elsif (member($phys_m->{method}, qw(disk nfs))) { # use the real mount point: - if ($medium->{url} =~ m!/tmp/image!) { - $medium->{url} =~ s!/tmp/image!$phys_m->{mntpoint}!; + if ($medium->{url} =~ m!/tmp/image/media!) { + $medium->{url} =~ s!/tmp/image/media!$phys_m->{mntpoint}$phys_m->{rel_path}!; } else { # just remove $::prefix and we already have the real mount point: $medium->{url} =~ s!^$::prefix!!;
View Attachment As Raw
Actions:
View
Attachments on
bug 5690
: 6567