Skip to content

Conversation

@cgwalters
Copy link
Collaborator

In order to debug failures more reliably we really always want a virtual console.

It turns out the Fedora kernel configs for a while have done https://gitlab.com/cki-project/kernel-ark/-/commit/9a0d7ce2af11ef7b9a3bc3073e13dc9983b7e245 which means hvc0 is available from very early boot.

I am probably going to argue to do this in all Fedora derivatives by default soon but let's start here.

@bootc-bot bootc-bot bot requested a review from jmarrero November 19, 2025 16:39
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a default kernel argument console=hvc0 to improve debugging capabilities by ensuring a virtual console is available. The change is implemented by adding a new configuration file in the configure-rootfs script. While the intent is good, the script modification has potential robustness issues. My review provides a suggestion to ensure the target directory exists and to use file overwrite instead of append, making the script idempotent and preventing potential failures.

In order to debug failures more reliably we really always want a virtual
console.

It turns out the Fedora kernel configs for a while have done
https://gitlab.com/cki-project/kernel-ark/-/commit/9a0d7ce2af11ef7b9a3bc3073e13dc9983b7e245
which means hvc0 is available from very early boot.

I am probably going to argue to do this in all Fedora derivatives by
default soon but let's start here.

Signed-off-by: Colin Walters <walters@verbum.org>
Copy link
Contributor

@jmarrero jmarrero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jmarrero
Copy link
Contributor

First time seeing hvc0 this was helpful: https://chatgpt.com/share/691dfb3d-3edc-8011-8777-fb947bfad2bb

@cgwalters cgwalters merged commit e99410d into bootc-dev:main Nov 19, 2025
33 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants