flatcar-4459: backport "sys-kernel/coreos-modules: Install external mod build files with script"#3838
Merged
tormath1 merged 2 commits intoflatcar-4459from Mar 18, 2026
Merged
Conversation
The kernel now includes a script for installing the files needed to build out-of-tree modules, rendering our existing code obsolete. The layout is different, but we were following Ubuntu's non-standard layout when there was no need to. Ubuntu's approach is seemingly designed to save space by symlinking common files across different platforms, but Flatcar doesn't need to do this. More importantly, our previous approach relied on a kernel patch we have carried for years that no longer applies from v6.13. The patch cannot simply be reworked as the underlying mechanism has changed. This clears the last major blocker for the arm64 SDK as the previous approach also relied on implicit execution by QEMU. There has been concern that this may break compatibility with some modules, but I have not seen any issues in practise. I have symlinked `source` to `build` even though we don't install the full kernel sources because this is what Fedora does, and it makes the layout resemble Ubuntu a little more. Should any issues arise, I will gladly work with upstreams to resolve them or otherwise make adjustments. Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com> Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com> Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
sayanchowdhury
approved these changes
Mar 18, 2026
chewi
approved these changes
Mar 18, 2026
Contributor
Author
|
Cherry-picked to:
@sayanchowdhury I would recommend to carefully check the next LTS nightlies to see if something looks weird, the patch was not cherry-picking correctly. |
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 this PR, we backport #3445 to
flatcar-4459(current Stable). This should fix an issue withzfs-kmodcompilation in last Kernel patch releases:changelog/directory (user-facing change, bug fix, security fix, update)/bootand/usrsize, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.