Skip to content

Allow use of legacy OEM path while migrating modules to the new path#118

Open
chewi wants to merge 1 commit intoflatcar-masterfrom
chewi/oem-initrd
Open

Allow use of legacy OEM path while migrating modules to the new path#118
chewi wants to merge 1 commit intoflatcar-masterfrom
chewi/oem-initrd

Conversation

@chewi
Copy link
Contributor

@chewi chewi commented Mar 3, 2026

Allow legacy OEM path while migrating to new path

The new minimal-init passed the contents of /oem to the second stage, but not the legacy /usr/share/oem path that is still documented. This change moves either the former or the latter into the second stage. This is no longer done via a bind mount, as that adds unnecessary complexity.

At the same time, Dracut modules in the second stage can simply reference /oem rather than /usr/share/oem now that the first stage deals with the migration.

This addresses flatcar/Flatcar#2023.

How to use

Try the documented method. You can also try it with /oem instead of /usr/share/oem.

Testing done

I've successfully done the above with both paths. I've also kicked off a Jenkins run.

The new minimal-init passed the contents of /oem to the second stage,
but not the legacy /usr/share/oem path that is still documented. This
change moves either the former or the latter into the second stage. This
is no longer done via a bind mount, as that adds unnecessary complexity.

At the same time, Dracut modules in the second stage can simply
reference /oem rather than /usr/share/oem now that the first stage deals
with the migration.

Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
@chewi chewi self-assigned this Mar 3, 2026
@chewi chewi requested a review from a team as a code owner March 3, 2026 17:54
@chewi
Copy link
Contributor Author

chewi commented Mar 3, 2026

CC @pothos

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.

1 participant