Skip to content

bootloader_settings does not support duplicate option names #191

@divialth

Description

@divialth

The role currently cannot apply multiple values for the same kernel argument name in bootloader_settings.

This is a valid GRUB use case, for example setting both local and serial console output with two console= entries.

Reproducer
Use this role input:

bootloader_settings:
  - kernel: ALL
    options:
      - name: console
        value: tty0
      - name: console
        value: ttyS0

Run the role and inspect resulting kernel args via grubby --info=ALL.

Expected behavior
Both values should be present in kernel args, e.g.:

... console=tty0 console=ttyS0 ...

Actual behavior
Only one value is effectively configured (the last defined entry), so one console= is lost.

Why this matters
Multiple console= parameters are a common/valid Linux boot configuration (e.g. physical console + serial console).
Current behavior prevents expressing that desired state with the role.

Environment
Role Version: 1.1.6
Collection: fedora.linux_system_roles
Collection Version: 1.120.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions