Hi Ludo,

On Thu, 20 Jul 2017 22:32:29 +0200
[email protected] (Ludovic Courtès) wrote:

> > 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.

I can't believe I'm suggesting this (we've come full circle now) but we could 
add a new bootloader in gnu/bootloader/grub.scm, 

(define* grub-hybrid-bootloader ; or grub-mkrescue-bootloader, maybe less 
misleading.
  (bootloader
   (inherit grub-efi-bootloader)
   (configuration-file-generator 
grub-configuration-file-without-search-emission) ; this here could parametrize 
grub-configuration-file somehow or maybe we could refactor 
grub-configuration-file instead.
   ; Note: name is still 'grub-efi, so the public boot parameters API doesn't 
change.
   (package grub-hybrid))) ; probably; or grub-efi if you just want a quick 
test with EFI only.

... and use it in iso9660-image or gnu/system/install.scm .



Reply via email to