summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2004-10-26 14:33:44 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2004-10-26 14:33:44 +0000
commit39118dd7bc4ebbbaec920b4e8f8dac4b39ad4653 (patch)
tree4163ee9705649d4bf75d47efcf703be37c3f7903 /perl-install
parente078ef76e302ecefc3d337d6a10d9001dac5bf89 (diff)
downloaddrakx-39118dd7bc4ebbbaec920b4e8f8dac4b39ad4653.tar
drakx-39118dd7bc4ebbbaec920b4e8f8dac4b39ad4653.tar.gz
drakx-39118dd7bc4ebbbaec920b4e8f8dac4b39ad4653.tar.bz2
drakx-39118dd7bc4ebbbaec920b4e8f8dac4b39ad4653.tar.xz
drakx-39118dd7bc4ebbbaec920b4e8f8dac4b39ad4653.zip
run grub chrooted
Diffstat (limited to 'perl-install')
-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 d1a0b08e9..b3c9b045b 100644
--- a/perl-install/bootloader.pm
+++ b/perl-install/bootloader.pm
@@ -1253,10 +1253,8 @@ sub install_grub {
if (!$::testing) {
log::l("Installing boot loader...");
- symlink "$::prefix/boot", "/boot";
my $error;
- run_program::run("sh", '/boot/grub/install.sh', "2>", \$error) or die "grub failed: $error";
- unlink "/boot";
+ run_program::rooted($::prefix, "sh", '/boot/grub/install.sh', "2>", \$error) or die "grub failed: $error";
}
}
sub when_config_changed_grub {