Skip to content

Grub serial console support #35

@lzap

Description

@lzap

The standard grub2 configuration is completely ignored as bootupd is used for bootc systems, so this will not work at all:

RUN cat > /etc/default/grub <<'EOF'
GRUB_TERMINAL="console serial"
GRUB_SERIAL_COMMAND="serial --speed=115200"
EOF

Bootc uses static grub config, luckily it include:

if [ -f $prefix/console.cfg ]; then
  # Source in any GRUB console settings if provided by the user/platform
  source $prefix/console.cfg
fi

But this volume is not present during build time. There could be a way to create a firstboot script to create such file so from 2nd boot grub is available but this is a hack. Thus creating this ticket as a reminder we should implement grub console access which is very helpful for VMs.

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