Subject: Re: Lookup by UUID

From: [email-masked] (Ludovic Courtès)
Date: Thu, 20 Jul 2017 22:32:29 +0200

Heya,

Danny Milosavljevic <[email-masked]> skribis:

>> With iso9660, it works… by chance, because GRUB’s “search --fs-uuid”
>> fails.  Guess why?  Because it compares UUIDs as strings, and we format
>> it as a DCE UUID instead of an ISO UUID.  Sounds familiar no?  :-)
>
> Yeah :)
>
>> So that’s where we are.  Thoughts on how to address it?
>
> https://www.gnu.org/software/grub/manual/grub.html#Making-a-GRUB-bootable-CD_002dROM says:
>
>>...grub-mkrescue
>>This produces a file named grub.iso, which then can be burned into a CD (or a DVD), or written to a USB mass storage device.
>>The root device will be set up appropriately on entering your grub.cfg configuration file, so you can refer to file names on the CD without needing to use an explicit device name. This makes it easier to produce rescue images that will work on both optical drives and USB mass storage devices. 
>
> So... just leave the entire "search" instruction off if it's created by grub-mkrescue ?  That's how one could interpret thir "root device" sentence...

Oooh, interesting, that comes in handy.  :-)

Now, how can we pass the information to ‘grub-configuration-file’ so
that it doesn’t emit that “search” command?

It seems that the bootloader API doesn’t leave room to pass
bootloader-specific options.

Thoughts?

Ludo’.