Mageia Bugzilla – Attachment 9174 Details for
Bug 20620
Erroneous report that grub2 cannot be installed at end of Live install
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Patch to clean up Live install chroot in do_pkgs_standalone:install()
0001-Clean-up-detection-of-Live-install-root-in-do_pkgs_s.patch (text/plain), 908 bytes, created by
Martin Whitaker
on 2017-04-02 22:31:51 CEST
(
hide
)
Description:
Patch to clean up Live install chroot in do_pkgs_standalone:install()
Filename:
MIME Type:
Creator:
Martin Whitaker
Created:
2017-04-02 22:31:51 CEST
Size:
908 bytes
patch
obsolete
>From e072255850272f6a6496277a83ec3063536959ac Mon Sep 17 00:00:00 2001 >From: Martin Whitaker <mageia@martin-whitaker.me.uk> >Date: Sun, 2 Apr 2017 11:54:16 +0100 >Subject: [PATCH 1/4] Clean up detection of Live install root in > do_pkgs_standalone::install(). > >Now we have $::isLiveInstall, we can use it. Also use $::prefix >instead of hardcoding the path. > >diff --git a/perl-install/do_pkgs.pm b/perl-install/do_pkgs.pm >index 44f2e3a..4c40d46 100644 >--- a/perl-install/do_pkgs.pm >+++ b/perl-install/do_pkgs.pm >@@ -333,7 +333,7 @@ sub install { > return 1; > } > >- my @wrapper = is_mgalive() && -e '/mnt/install' ? qw(chroot /mnt/install) : (); >+ my @wrapper = $::isLiveInstall && $::prefix ? ('chroot', $::prefix) : (); > my @options = ('--allow-medium-change', '--auto', '--no-verify-rpm', '--expect-install', @l); > my $ret; > if (check_for_xserver() && -x '/usr/bin/gurpmi') { >-- >2.10.2 >
From e072255850272f6a6496277a83ec3063536959ac Mon Sep 17 00:00:00 2001 From: Martin Whitaker <mageia@martin-whitaker.me.uk> Date: Sun, 2 Apr 2017 11:54:16 +0100 Subject: [PATCH 1/4] Clean up detection of Live install root in do_pkgs_standalone::install(). Now we have $::isLiveInstall, we can use it. Also use $::prefix instead of hardcoding the path. diff --git a/perl-install/do_pkgs.pm b/perl-install/do_pkgs.pm index 44f2e3a..4c40d46 100644 --- a/perl-install/do_pkgs.pm +++ b/perl-install/do_pkgs.pm @@ -333,7 +333,7 @@ sub install { return 1; } - my @wrapper = is_mgalive() && -e '/mnt/install' ? qw(chroot /mnt/install) : (); + my @wrapper = $::isLiveInstall && $::prefix ? ('chroot', $::prefix) : (); my @options = ('--allow-medium-change', '--auto', '--no-verify-rpm', '--expect-install', @l); my $ret; if (check_for_xserver() && -x '/usr/bin/gurpmi') { -- 2.10.2
View Attachment As Raw
Actions:
View
Attachments on
bug 20620
: 9174 |
9175
|
9176
|
9177
|
9182