On Thu, Oct 27, 2011 at 03:53, Seth Goldberg <[email protected]>wrote:

>
> Quoting Vladimir 'φ-coder/phcoder' Serbinenko, who wrote the following
> on...:
>
>  prefix will be "X". Just on runtime it will add platform to it when
>> loading modules and .lst (but not locale, themes and grub.cfg)
>>
>
>  Sorry -- prefix is the wrong term.  It is interesting that you're going
> beyond what I thought, though; I thought you were just going to do what
> grub-mkrescue did by creating the platform subdirs and putting grub.cfg in
> there that does platform-specific stuff then sources ../grub.cfg;  I think
> that was a good approach, since you ended up with the generic entries in
> the ../grub.cfg file and platform-specific goodness in the platform dirs.
>


For now can you please check-in
grub-mkconfig-Use_outside_GRUB_PREFIX_if_defined.patch (file attached). I
can't think of any other way more simple than this. For usage like (as root)

  # GRUB_PREFIX="/boot/efi/efi/grub" grub-mkconfig -o
/boot/efi/efi/grub/grub.cfg

This is definitely not the best or the long-term solution but for now this
will suffice (till the actual option to be used is decided). Thanks in
advance.

Regards.

Keshav
commit e744fe45dc0f349156d92b37349619cfbaec8f2f
Author: Keshav P R <[email protected]>
Date:   Tue Nov 22 14:39:54 2011 +0530

    grub-mkconfig: Use outside GRUB_PREFIX if defined

diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in
index e317279..a229811 100644
--- a/util/grub-mkconfig.in
+++ b/util/grub-mkconfig.in
@@ -40,7 +40,9 @@ grub_mkdevicemap=${sbindir}/`echo grub-mkdevicemap | sed "${transform}"`
 grub_probe=${sbindir}/`echo grub-probe | sed "${transform}"`
 grub_script_check="${bindir}/`echo grub-script-check | sed "${transform}"`"
 
-GRUB_PREFIX=`echo '/@bootdirname@/@grubdirname@' | sed "s,//*,/,g"`
+if test -z "${GRUB_PREFIX}"; then
+    GRUB_PREFIX=`echo '/@bootdirname@/@grubdirname@' | sed "s,//*,/,g"`
+fi
 
 # Usage: usage
 # Print the usage.
_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to