From 39118dd7bc4ebbbaec920b4e8f8dac4b39ad4653 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwenol=C3=A9=20Beauchesne?= Date: Tue, 26 Oct 2004 14:33:44 +0000 Subject: run grub chrooted --- perl-install/bootloader.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'perl-install') 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 { -- cgit v1.2.1