Article 5H39X Grub-install query. I want a specific directory layout.

Grub-install query. I want a specific directory layout.

by
bodge99
from LinuxQuestions.org on (#5H39X)
Hi,

I'm in the process of revamping some of my multiboot systems, including several external devices that contain various installations and Iso/Iso extracted contents. I'm now looking at a simplified Grub boot setup that is identical on each computer and device. This is installed into the EFI partition.. I find this **much** easier to use and maintain.

I'm using Mint in a VM for testing purposes.

I want this:
Code:"EFI Partition Root"
EFI
BOOT
BOOTX64.CSV
BOOTX64.EFI
fbx64.efi
grub
fonts
unicode.pf2
grub.cfg {2}
grubenv
x86_64-efi
acpi.mod
adler32.mod
: :
zfs.mod
zstd.mod
grub.cfg {1}
grubx64.efi
mmx64.efi
shimx64.efi{1} Initial 'grub.cfg'. This sets the Grub prefix properly. This is required with some UEFI hardware. It then calls the '/EFI/BOOT/grub/grub.cfg'
{2} Manually created. This has simple menuentries.. These search for filesystems (by UUID) and then point to the individual systems 'grub.cfg' etc.

The advantages (for me) are a consistent EFI layout on all UEFI machines and GPT external devices. Only one directory to backup per device.

I can obtain this layout (the EFI partition is mounted to /mnt) using:
Code:grub-install --recheck --boot-directory=/mnt/EFI/BOOT --efi-directory=/mnt --bootloader-id=BOOT --target=x86_64-efi /dev/sdaBut I need to change an embedded path within 'grubx64.efi' (at 0x001991F8) from '/EFI/ubuntu' to '/EFI/BOOT'.

The "more normal" install here, using:
Code:grub-install --recheck --boot-directory=/mnt/EFI/BOOT --efi-directory=/mnt --target=x86_64-efi /dev/sdagives:
Code:"EFI Partition Root"
EFI
BOOT
BOOTX64.EFI
fbx64.efi
grub
fonts
unicode.pf2
grub.cfg
grubenv
x86_64-efi
acpi.mod
adler32.mod
: : :
zfs.mod
zstd.mod
mmx64.efi
ubuntu
BOOTX64.CSV
grub.cfg
grubx64.efi
mmx64.efi
shimx64.efiThis works perfectly fine, but is not quite what I want.

I would like to eliminate the 'ubuntu' directory completely. This leads to my question..

Where does 'grub-install' obtain the path '/EFI/ubuntu' which is subsequently embedded into 'grubx64.efi' from??
I can't find anything obvious..

I don't **NEED** this.. I **WANT** this..

Thanks for reading!

Bodge99latest?d=yIl2AUoC8zA latest?i=4MwY--bPEQI:-tiFOuZ47is:F7zBnMy latest?i=4MwY--bPEQI:-tiFOuZ47is:V_sGLiP latest?d=qj6IDK7rITs latest?i=4MwY--bPEQI:-tiFOuZ47is:gIN9vFw4MwY--bPEQI
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments