-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install: make platform-specific bootloader changes when -p
specified
#605
Conversation
Notably, while this PR allows the user to override console kargs, it doesn't provide a way to override the GRUB console commands. |
Tested the contents of
Ready for review. |
Rebased and reworked. Tested the contents of
with each of:
Also tested:
Ready for review. |
I hadn't really looked at this before. I totally understand the goals, but this is also taking us even farther away from the "fancy dd" model. The feature requires coreos-assembler as is and is another thing that won't work for RHEL for Edge. (Of course, it could be made to, and I do hope eventually they support Ignition at least optionally which would greatly simplify the story, but just noting) How much do we need this versus just documenting how to use the existing kernel argument switches? |
This code is only invoked for RHEL for Edge doesn't use Ignition, so |
Updated! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review! The last commit needs some additional thought, so I've moved it to a separate PR #877.
Updated! |
Avoid a growing list of loose function imports.
Use the existing tool for consistency. It's slightly smarter than simple string replacement.
If -p is specified and /boot/coreos/platforms.json exists, look up the specified platform and the "metal" platform in that file. Remove any metal-specific kernel arguments or GRUB commands specified there, and inject any kargs/commands for the new platform. This allows us to apply a platform-specific console configuration at install time.
Allow kargs modification to change a platform-specific default console.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
If
-p
is specified and/boot/coreos/platforms.json
exists, look up the specified platform and themetal
platform in that file. Remove any metal-specific kernel arguments or GRUB commands specified there, and inject any kargs/commands for the new platform. This allows us to apply a platform-specific console configuration at install time.Set the platform before performing kargs modification to allow the latter to change a platform-specific default console.
When installing via
coreos.inst
kargs, persist anyconsole=
kargs to the destination system, as suggested in coreos/fedora-coreos-tracker#567 (comment).