From 16dad0203d2e3d410ae4e0baaac75aaceebc9831 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Tue, 15 Sep 2009 19:13:09 +0000 Subject: set LD_LIBRARY_PATH to chroot libraries when running grub --- draklive | 1 + 1 file changed, 1 insertion(+) diff --git a/draklive b/draklive index 839ef3f..b15efb4 100755 --- a/draklive +++ b/draklive @@ -914,6 +914,7 @@ sub install_usb_bootloader { my $grub_device_map = $live->{mnt} . $media_boot . "/grub/device.map"; unlink $grub_device_map; foreach ($master_device, $boot_device) { + local $ENV{LD_LIBRARY_PATH} = $root . $live->get_lib_prefix; run_($local_grub_install, '--root-directory=' . $live->{mnt}, '--no-floppy', $_) or die "unable to run grub on $device\n"; } -- cgit v1.2.1