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

overlay coreos-base/afterburn: update to 5.5.0 #1467

Merged
merged 6 commits into from
Dec 7, 2023

Conversation

dongsupark
Copy link
Member

@dongsupark dongsupark commented Dec 4, 2023

Update coreos-base/afterburn to the latest release 5.5.0.

Adjust Flatcar patches for 5.5.0, it is necessary to add again the hostname crate, which is not included in 5.5 any more by default.

Remove unnecessary patches for 5.5.0.

  • 0003-encode-information-for-systemd-networkd-wait-online.patch: it is already merged in upstream, coreos/afterburn@d2cc340.
  • 0004-lto-thin.patch: it is not needed any more, since upstream does not enable lto = true any more in coreos/afterburn@464c7f9.

Fix build issue that started to appear in afterburn 5.5.0. Every public function for the amd64 part must have a corresponding empty function in the unsupported part, so that cross-compile for arm64 can work.
(See also coreos/afterburn#1022)

Needs to be cherry-picked to Beta, flatcar-3760.

Fixes flatcar/Flatcar#1049.

Testing done

CI (for all cloud providers): http://jenkins.infra.kinvolk.io:8080/job/container/job/packages_all_arches/3058/cldsv/

  • Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update)
  • Inspected CI output for image differences: /boot and /usr size, packages, list files for any missing binaries, kernel modules, config files, kernel modules, etc.

Copy link

github-actions bot commented Dec 5, 2023

Build action triggered: https://github.com/flatcar/scripts/actions/runs/7126840287

Update afterburn to the latest release 5.5.0.
https://github.com/coreos/afterburn/releases/tag/v5.5.0.

Regenerate its dependency crate list.
Adjust Flatcar patches 000[12]* for afterburn 5.5.0.

For 0001* to be compiled, it is necessary to add again the hostname
crate, which is not included in 5.5 any more by default.
0003-encode-information-for-systemd-networkd-wait-online.patch
can be dropped, as it was already merged to upstream.
coreos/afterburn@d2cc340

Since upstream does not enable `lto = true` any more in
coreos/afterburn@464c7f9,
it is not necessary to keep the LTO patch.
Just drop it.
Fix build issue that started to appear in afterburn 5.5.0. Every public
function for the amd64 part must have a corresponding empty function in
the unsupported part, so that cross-compile for arm64 can work.
In the release profile of Cargo.toml, add `codegen-units = 1`,
`strip = true`, and remove `debug = true`, to reduce binary size of
afterburn included in production images.
Copy link
Member

@pothos pothos left a comment

Choose a reason for hiding this comment

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

Thanks!

@dongsupark dongsupark marked this pull request as ready for review December 7, 2023 10:18
@dongsupark
Copy link
Member Author

CI passed for all cloud providers.

@dongsupark dongsupark merged commit 2e7985c into main Dec 7, 2023
1 check failed
@dongsupark dongsupark deleted the dongsu/afterburn-5.5.0 branch December 7, 2023 10:20
@dongsupark
Copy link
Member Author

cherry-picked to flatcar-3760

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFE] upgrade coreos-base/afterburn
2 participants