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

upload_package: Register extension payloads in update package #148

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

pothos
Copy link
Member

@pothos pothos commented Sep 18, 2023

Nebraska should now deliver OEM update payloads through the extra_files mechanism (besides OEM extensions other Flatcar extensions will be added in the future, too).
Upload the additional payloads to Origin and register them in the extra_files section when creating a package.

How to use

These new scripts must be used to publish the next releases.

Testing done

NOUPLOAD=1 ./upload_package /run/media/usb/sdk/src/scripts/data/test/3717.0.0/ https://staging.updateservice.flatcar-linux.net some.release.flatcar-linux.net 9999.9.9

Nebraska should now deliver OEM update payloads through the extra_files
mechanism (besides OEM extensions other Flatcar extensions will be
added in the future, too).
Upload the additional payloads to Origin and register them in the
extra_files section when creating a package.
for EXTRA_FILE in "${EXTRA_FILES[@]}"; do
E_NAME=$(basename "${EXTRA_FILE}")
E_SIZE=$(stat --format='%s' "${EXTRA_FILE}")
E_HASH_SHA1=$(openssl dgst -sha1 -binary < "${EXTRA_FILE}" | base64)
Copy link
Member

Choose a reason for hiding this comment

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

I suppose that sha1sum can't be used due to some update_engine/omaha/nebraska weirdness?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it has no "--base64" flag :D

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