build-sys: Inject hvc0 by default#1786
Merged
cgwalters merged 1 commit intobootc-dev:mainfrom Nov 19, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
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>
Contributor
|
First time seeing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.