help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Alternative to ${cmdpath} which returns just the device


From: SevenBits
Subject: Alternative to ${cmdpath} which returns just the device
Date: Fri, 14 Nov 2014 18:15:52 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello there,

I'm the developer of Mac Linux USB Loader and Enterprise, two
Mac-related UEFI tools. Enterprise, one of the components, uses GRUB
to boot Linux kernels. Since I've compiled GRUB as x86-64 and it's
creating the image with the grub-mkstandalone command, the initial
root from GRUB is the memdisk, accessible via the (memdisk) device.

Several months ago, I was pointed to the ${cmdpath} variable, which
has proven very useful. However, on my setup, when booting from UEFI,
that variable contains the device *and* the path to the folder
containing the GRUB executable, for example:

(hd0,gp1)/efi/boot/

In 90% of cases, this is great, however, I need a way to get just the
device GRUB was booted from, and not the path to the executable. Is
this possible?

- -- SevenBits
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJUZo0oAAoJEFbRvtGxmFPEOkIH/3iTbObUvC+3qYnqSks09CK0
48vHhfVFqfzMaX+Nc2EzrmNalObwnX5RoG94bKtE8ST5Z1+ECSRHtVTp0gTCGhrV
mC+K8KGd8N3x4b+tXzx2zWsj6QI+vEnSubH+3BGvwh/KNgGklGUq9RzQ4xnLSlVT
USh6A0TLtIsNvrqG1j2rmpeXynGwpm14yHFRy6kLJPnPfIJhl84CWlvxKqdsS709
OhbqpQy+feJJpUGLCJ1aUip8n2XX++3rtjEpYf+yQRMN6ImDwtFYbjZzoc3hpZnW
8n0SIzEhP39cerMfdjqe0UnOzA5aFO3cJVFFuBYpXi0gl1Z05D3f2bkfWDGLawQ=
=G0vR
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]