> Putting together “exact Guile Scheme Code” is a lot to ask, but I can > give you the following. You will have to adjust it appropriately if, > for example, you are not using EFI. Note also that this is untested, > but it is certainly close. > > What you want to do is create a custom bootloader that behaves just like > GRUB except for the “installer”. In Guix, each bootloader is defined by > a “bootloader” record. Part of that record is an “installer” field, > which tells Guix how to install the bootloader onto the system. > > In addition to whatever else you use for your config file, you will need > the following modules: > > (use-modules (gnu) > (guix gexp)) > > Now you can make your custom bootloader: > > (define grub-efi-bootloader-sans-install > (bootloader > (inherit grub-efi-bootloader) > (installer #~(const #t)))) > > Here, “(const #t)” tells Guile to create a function that always returns > “#t”, which means “true”. The “#~” part introduces a G-expression, > which is a handy way to write code that is intended to be run from the > build environment. > > Finally, this should work as part of your configuration: > > (operating-system > ;; ... > (bootloader (bootloader-configuration > ;; ... > (bootloader grub-efi-bootloader-sans-install)) > > That is, you need to change your “bootloader-configuration” to use your > new custom bootloader. > > I hope that helps! >
Thank you very much. Regards, RG.