pelzflorian (Florian Pelz) (2017-06-04 16:25 +0200) wrote: > On Sun, Jun 04, 2017 at 04:38:11PM +0300, Alex Kost wrote: >> This is a limitation of 'grub-configuration' macro: that backtrace >> happened because you have 'grub' field *not* in the first place of your >> 'grub-configuration'. >> >> […] >> >> Note that this will work if you put (grub grub-efi) in the first place: >> >> (grub-configuration (grub grub-efi) >> (device "/dev/sda")) >> > > Ah… Thank you for clarifying. > > (bootloader (grub-configuration (grub grub-efi) > (device "/dev/sda"))) > > I just tried and this fails too with the same error. I’m not sure why > it does not match the syntax rule for grub-configuration.
Hm, strange, it doesn't give me that error when 'grub' is in the first place. Anyway, I would use 'bootloader-configuration' instead as you do it now. > This macro seems complicated and unintuitive. I don’t like how a > syntax rule feigns being a record definition but isn’t and therefore > breaks things… Why not just inherit bootloader-configuration? I don't know, it's better to ask Mathieu (Cc-ed) who made these changes in the bootloader code. -- Alex