Skip to content

setup-root: Detect initial sysext MVP#62

Merged
pothos merged 2 commits intoflatcar-masterfrom
kai/sysext-initial-mvp
Jun 6, 2023
Merged

setup-root: Detect initial sysext MVP#62
pothos merged 2 commits intoflatcar-masterfrom
kai/sysext-initial-mvp

Conversation

@pothos
Copy link
Copy Markdown
Member

@pothos pothos commented May 31, 2023

  • setup-root: Detect initial sysext MVP

    We have implemented the building of OEM sysext images but the update
    path is still in progress. Instead of blocking the migration for new
    deployments, we will lose the version coupling by using "initial" as
    version in the file name and SYSEXT_LEVEL instead of VERSION_ID for the
    extension release file.
    Detect the initial sysext MVP path to activate the OEM sysext.

  • setup-root: Read old OEM files from the migration flag file

    The list of old files per OEM needs to be maintained somewhere. Instead
    of doing this in the initrd script, we can use the update-engine
    post-inst action which already is a place for migration logic.
    Expect that the post-inst action writes all old OEM files to clean up to
    the migration flag file that triggers the deletion.

How to use

Requires changes in https://github.com/flatcar/scripts/pull/858/files#diff-3b2def625e0988b47d34144d412cb632e946cd13b7b57ad3918b4322cbef9262R165 to use SYSEXT_LEVEL and in https://github.com/flatcar/scripts/pull/858/files#diff-1390361e20f8ec710779da5680655da8aef20d972df05b5c0c4ca5e3ad80a1adR552 to overwrite the version to be initial

Testing done

to be done with the scripts PR

pothos added 2 commits May 31, 2023 17:36
We have implemented the building of OEM sysext images but the update
path is still in progress. Instead of blocking the migration for new
deployments, we will lose the version coupling by using "initial" as
version in the file name and SYSEXT_LEVEL instead of VERSION_ID for the
extension release file.
Detect the initial sysext MVP path to activate the OEM sysext.
The list of old files per OEM needs to be maintained somewhere. Instead
of doing this in the initrd script, we can use the update-engine
post-inst action which already is a place for migration logic.
Expect that the post-inst action writes all old OEM files to clean up to
the migration flag file that triggers the deletion.
@krnowak
Copy link
Copy Markdown
Member

krnowak commented Jun 2, 2023

I'll pull this PR into flatcar/scripts#858.

@pothos
Copy link
Copy Markdown
Member Author

pothos commented Jun 6, 2023

I'll create a follow up for the download now that we know the file name for the fallback download from release artifacts (oem-azure.raw without compression).

@pothos pothos merged commit 2c85973 into flatcar-master Jun 6, 2023
@pothos pothos deleted the kai/sysext-initial-mvp branch June 6, 2023 11:43
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