On 2024-07-23 10:17:51 -0400, Zack Weinberg wrote:
> On Mon, Jul 22, 2024, at 5:33 PM, Tomas Volf wrote:
> > Hi,
> >
> > On 2024-07-22 16:18:41 -0400, Zack Weinberg wrote:
> >> Suppose I want to append "console=ttyS0,115200n8" to every GRUB
> >> bootloader menu entry. I can't figure out how to do that with a
> >> (bootloader-configuration) recipe.  The manual talks about writing
> >> *extra* menu entries, but not about tweaking the automatically
> >> generated ones.  Is it possible, and if so, how?
> >
> > I believe the kernel-arguments field can be of use.  For example I have 
> > this in
> > my configuration:
> >
> >       (kernel-arguments (delete "quiet"
> >                                 %default-kernel-arguments))
>
> Thanks, but kernel-arguments isn't recognized as a valid field of
> bootloader-configuration.

Ah, sorry, should have been more explicit.  In my case it is a field of
operating-system.  So in your case try something like

  (operating-system
    ...
    (host-name "foo")
    ...
    (kernel-arguments (cons* "console=ttyS0,115200n8"
                             %default-kernel-arguments))
    ...)

From there it should automatically propagate into all auto-generated boot menu
entries.

Hope it helps this time,
Tomas Volf

--
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.

Attachment: signature.asc
Description: PGP signature

Reply via email to