summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2015-01-09 01:13:13 +0159
committerThomas Backlund <tmb@mageia.org>2015-01-09 01:13:13 +0159
commitf8fd031d3e70a7f4c25f0be93e472cecc0dee00e (patch)
treede28095478cb9e3e3b8cbb2f75e03afcb50cfca7 /perl-install
parentdebe8d3882800bf2316384d28ebeea6444171171 (diff)
downloaddrakx-f8fd031d3e70a7f4c25f0be93e472cecc0dee00e.tar
drakx-f8fd031d3e70a7f4c25f0be93e472cecc0dee00e.tar.gz
drakx-f8fd031d3e70a7f4c25f0be93e472cecc0dee00e.tar.bz2
drakx-f8fd031d3e70a7f4c25f0be93e472cecc0dee00e.tar.xz
drakx-f8fd031d3e70a7f4c25f0be93e472cecc0dee00e.zip
bootloader: enable isInstall during live mode so we install to chroot and not on live image
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/bootloader.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 0924d7bac..433e580aa 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -2061,6 +2061,8 @@ sub ensure_pkg_is_installed {
my %h = ('grub2' => 'grub2-install');
my $main_method = main_method($bootloader->{method});
if (member($main_method, qw(grub grub2 lilo))) {
+ # install of bootloader must be done in chroot, not on live image
+ local $::isInstall = 1 if is_mgalive();
$do_pkgs->ensure_binary_is_installed($pkg{$main_method} || $main_method, $h{$main_method} || $main_method, 1) or return 0;
if ($bootloader->{method} eq 'grub-graphic') {
$do_pkgs->ensure_is_installed('mageia-gfxboot-theme', '/usr/share/gfxboot/themes/Mageia/boot/message', 1) or return 0;