All of lore.kernel.org
 help / color / mirror / Atom feed
* grub2 uefi x86_64 standalone image feature request
@ 2011-12-23 15:48 Keshav P R
  2011-12-23 16:02 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 2+ messages in thread
From: Keshav P R @ 2011-12-23 15:48 UTC (permalink / raw)
  To: grub-devel

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

Hi,
    Is there any way to obtain the path info from which a standalone
grub.efi was launched. In case of grub-mkimage uisng --prefix="" results in
prefix being set to the dir from which the efi app was launched, but in the
standalone grub.efi the prefix is (memdisk)/boot/grub . In
(memdisk)/boot/grub/grub.cfg I added a search and configfile option that
points to the external grub.cfg (in <UEFISYS>/efi/grub/grub.cfg), but I
don't want to hardcode the grub.cfg file path in the configfile command in
the memdisk grub.cfg.

Is it possible to introduce a env var within grub2 (independent of prefix)
which gives the path (grub style) from which the grub.efi file was launched
by the firmware, so that I can do "configfile
(path_from_which_grub.efi_loaded)/grub.cfg" in (memdisk)/boot/grub/grub.cfg
in the standalone file. I want the standalone file to be be portable, no
hardcoding of path of external grub.cfg file (which is editable by the
user). Thanks in advance.

Regards.

Keshav

[-- Attachment #2: Type: text/html, Size: 1058 bytes --]

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

end of thread, other threads:[~2011-12-23 16:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-23 15:48 grub2 uefi x86_64 standalone image feature request Keshav P R
2011-12-23 16:02 ` Vladimir 'φ-coder/phcoder' Serbinenko

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.