All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix grub-install to use prefix for modules dir
@ 2008-06-17 17:51 Colin D Bennett
  2008-06-17 19:46 ` Pavel Roskin
  0 siblings, 1 reply; 8+ messages in thread
From: Colin D Bennett @ 2008-06-17 17:51 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 217 bytes --]

I fixed ``grub-install`` so it can function when installed
to a prefix other than ``/usr/local``.  This simply meant adding

  --directory="${pkglibdir}

to the command line arguments for grub_mkimage.

Regards,
Colin

[-- Attachment #2: grub_install_pkglibdir_fix_2008-06-17.patch --]
[-- Type: text/x-patch, Size: 759 bytes --]

=== modified file 'util/i386/pc/grub-install.in'
--- util/i386/pc/grub-install.in	2008-06-14 19:04:44 +0000
+++ util/i386/pc/grub-install.in	2008-06-17 17:07:08 +0000
@@ -234,7 +234,10 @@
 # The order in this list is critical.  Be careful when modifiing it.
 modules="$modules $fs_module $partmap_module biosdisk $devabstraction_module"
 
-$grub_mkimage --output=${grubdir}/core.img --prefix=`make_system_path_relative_to_its_root ${grubdir}`/ $modules || exit 1
+$grub_mkimage --output=${grubdir}/core.img \
+              --directory="${pkglibdir}" \
+              --prefix=`make_system_path_relative_to_its_root ${grubdir}`/ \
+	      $modules || exit 1
 
 # Now perform the installation.
 $grub_setup --directory=${grubdir} --device-map=${device_map} \


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-06-19  5:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-17 17:51 [PATCH] Fix grub-install to use prefix for modules dir Colin D Bennett
2008-06-17 19:46 ` Pavel Roskin
2008-06-17 20:04   ` Colin D Bennett
2008-06-18  0:04     ` Pavel Roskin
2008-06-18  6:09       ` Colin D Bennett
2008-06-19  5:15         ` Pavel Roskin
2008-06-17 20:11   ` Isaac Dupree
2008-06-17 20:39   ` Colin D Bennett

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.