Skip to content
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

[rhcos-4.15] overlay.d: add 40grub overlay #2787

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

dustymabe
Copy link
Member

bootupd upstream was modified to store default static grub configs and allow for OS integrators to add their own snippets by placing files in /usr/lib/bootupd/grub2-static/configs.d/ [1] When we move to building with osbuild we will start taking advantage of this functionality and calling bootupd with --with-static-configs. Let's go ahead and add our snippets here so they can be leveraged when we start calling bootupd with --with-static-configs.

The snippets added here come from the parts of the config currently defined in coreos-assembler that weren't lifted into bootupd [2][3][4].

[1] coreos/bootupd#543
[2] https://github.com/coreos/coreos-assembler/blob/4636b1a5c6dc00b1d6a58b1bfbb199431444336b/src/grub.cfg#L58-L60
[3] https://github.com/coreos/coreos-assembler/blob/4636b1a5c6dc00b1d6a58b1bfbb199431444336b/src/grub.cfg#L71-L85
[4] https://github.com/coreos/coreos-assembler/blob/4636b1a5c6dc00b1d6a58b1bfbb199431444336b/src/grub.cfg#L87-L91

(cherry picked from commit b40f727)

bootupd upstream was modified to store default static grub configs
and allow for OS integrators to add their own snippets by placing
files in /usr/lib/bootupd/grub2-static/configs.d/ [1] When we move
to building with osbuild we will start taking advantage of this
functionality and calling bootupd with --with-static-configs. Let's
go ahead and add our snippets here so they can be leveraged when we
start calling bootupd with --with-static-configs.

The snippets added here come from the parts of the config currently
defined in coreos-assembler that weren't lifted into bootupd [2][3][4].

[1] coreos/bootupd#543
[2] https://github.com/coreos/coreos-assembler/blob/4636b1a5c6dc00b1d6a58b1bfbb199431444336b/src/grub.cfg#L58-L60
[3] https://github.com/coreos/coreos-assembler/blob/4636b1a5c6dc00b1d6a58b1bfbb199431444336b/src/grub.cfg#L71-L85
[4] https://github.com/coreos/coreos-assembler/blob/4636b1a5c6dc00b1d6a58b1bfbb199431444336b/src/grub.cfg#L87-L91

(cherry picked from commit b40f727)
@jmarrero
Copy link
Member

jmarrero commented Jan 5, 2024

this test seems to consistently fail:

[2024-01-05T12:34:47.101Z] --- FAIL: ext.config.ntp.timesyncd.dhcp-propagation (12.66s)

[2024-01-05T12:34:47.101Z]         harness.go:1818: mach.Start() failed: machine e694473b-4a57-4eb4-8cac-fc9d3e549f9a entered emergency.target in initramfs

The tests won't pass because they run with latest COSA and not the
branch specific COSA. Let's just disable them for now.

(cherry picked from commit 5be9e14)
@dustymabe
Copy link
Member Author

yeah - FCOS tests shouldn't be running on RHCOS - let me cherry pick the disablement code that we always do on the branches here

@dustymabe
Copy link
Member Author

pushed!

Copy link
Member

@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

@dustymabe dustymabe merged commit 165eb7e into coreos:rhcos-4.15 Jan 5, 2024
1 check passed
@dustymabe dustymabe deleted the dusty-415-grub-overlay branch January 5, 2024 14:42
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