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

storaged: Use kernelopt.sh to set rd.neednet=1 #20422

Merged
merged 2 commits into from
May 3, 2024

Conversation

martinpitt
Copy link
Member

grubby isn't a thing on OSTree systems. We already have our kernelopt.sh script which supports all our distros. Move it to pkg/lib, and use it for NBDE.

Fixes #20419


Our current CI only tests on classic RPM, which should be a good enough regression test. Our FCOS image doesn't have the clevis* packages. I'm rather wary of adding them, as rpm-ostree install overlays are really not meant to be a production thing. This will/may come with -bootc images or perhaps rhel4edge. We don't currently run any cockpit-storage test there, that's a bigger project on its own.

@martinpitt
Copy link
Member Author

martinpitt commented May 3, 2024

Uh, first time I actually see differential shellcheck fail. That's a bit awkward -- the -o is easy enough to fix, but not the -a. Let's ignore that part.

pkg/lib/kernelopt.sh Dismissed Show dismissed Hide dismissed
`grubby` isn't a thing on OSTree systems. We already have our
`kernelopt.sh` script which supports all our distros. Move it to
pkg/lib, and use it for NBDE.

Fixes cockpit-project#20419
Differential ShellCheck complains about

> ./pkg/lib/kernelopt.sh:67:18: warning[SC2166]: Prefer [ p ] || [ q ] as [ p -o q ] is not well defined.

That's easy enough to fix.

It also complains about the `-a`, but that's awkward to split out due to
the grouping. Ignore that part.
@martinpitt
Copy link
Member Author

@sgallagher There's a packit COPR with the fix if you want to test. You can overlay the rpm on your tree?

Copy link
Member

@mvollmer mvollmer left a comment

Choose a reason for hiding this comment

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

Thanks!

@mvollmer mvollmer merged commit 429a6bb into cockpit-project:main May 3, 2024
80 of 82 checks passed
@martinpitt martinpitt deleted the kernelopt.sh branch May 3, 2024 06:24
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.

Enrolling with a tang keyserver for NBDE fails on atomic hosts
2 participants