summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2004-09-21 04:37:22 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2004-09-21 04:37:22 +0000
commit2fc394c9f8eb5c7ed022d73898b1d542cf0b7140 (patch)
treed9741f94dd6dd8162ec30fe004bc9084b2c14028
parent177604f255809f5886960c304ea7579c3c40221a (diff)
downloaddrakx-2fc394c9f8eb5c7ed022d73898b1d542cf0b7140.tar
drakx-2fc394c9f8eb5c7ed022d73898b1d542cf0b7140.tar.gz
drakx-2fc394c9f8eb5c7ed022d73898b1d542cf0b7140.tar.bz2
drakx-2fc394c9f8eb5c7ed022d73898b1d542cf0b7140.tar.xz
drakx-2fc394c9f8eb5c7ed022d73898b1d542cf0b7140.zip
run grub installation program in chroot so that to avoid weird pbs at times
-rw-r--r--perl-install/bootloader.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm
index 0cdbfc1bd..40c4c78a0 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -1152,10 +1152,8 @@ sub install_grub {
if (!$::testing) {
log::l("Installing boot loader...");
- symlink "$::prefix/boot", "/boot";
my $error;
- run_program::run("sh", $f, "2>", \$error) or die "grub failed: $error";
- unlink "/boot";
+ run_program::rooted($::prefix, "sh", $f, "2>", \$error) or die "grub failed: $error";
}
}