summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-09-15 19:13:09 +0000
committerOlivier Blin <oblin@mandriva.com>2009-09-15 19:13:09 +0000
commit16dad0203d2e3d410ae4e0baaac75aaceebc9831 (patch)
tree79fa2424383448e0256c3f707b0a637de1952da3
parent47342b291c129fd6ef253dd4bb3dd6d2376b0405 (diff)
downloaddraklive-16dad0203d2e3d410ae4e0baaac75aaceebc9831.tar
draklive-16dad0203d2e3d410ae4e0baaac75aaceebc9831.tar.gz
draklive-16dad0203d2e3d410ae4e0baaac75aaceebc9831.tar.bz2
draklive-16dad0203d2e3d410ae4e0baaac75aaceebc9831.tar.xz
draklive-16dad0203d2e3d410ae4e0baaac75aaceebc9831.zip
set LD_LIBRARY_PATH to chroot libraries when running grub
-rwxr-xr-xdraklive1
1 files changed, 1 insertions, 0 deletions
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";
}