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

bin: add flatcar-update tool for manual updates or airgapped updates #53

Merged
merged 1 commit into from
Dec 2, 2021

Conversation

pothos
Copy link
Member

@pothos pothos commented Nov 30, 2021

While updates are managed through Nebraska, not every user wants to or
can run their own service. Sometimes it would be more convenient if a
local update command exists that also supports airgapped updates or
helps a user to quickly jump between versions to reproduce an error.

Add a flatcar-update tool (similar to flatcar-install) which users can
run on the machine to force an update to a particular release or local
update payload. On old machines this script can be fetched and
executed, too, and should be CoreOS-compatible. Since update-engine
does no version check, it's also possible to downgrade with the tool.
The tool can disable updates after it ran, making it easy to do manual
updates when no own Nebraska server exists.

Docs PR: flatcar-archive/flatcar-docs#191

How to use

See ./flatcar-update -h - depending on whether you run it from a dev image or a release image, set the force key option.

Maybe consider to backport.

Testing done

A few test runs on a VM.

↓ will do in coreos-overlay

  • Changelog entries added in the respective changelog/ directory (user-facing change, bug fix, security fix, update)

bin/flatcar-update Show resolved Hide resolved
bin/flatcar-update Outdated Show resolved Hide resolved
bin/flatcar-update Show resolved Hide resolved
bin/flatcar-update Show resolved Hide resolved
@pothos pothos force-pushed the kai/flatcar-update branch 2 times, most recently from 4de3016 to 8899bcb Compare December 2, 2021 11:08
While updates are managed through Nebraska, not every user wants to or
can run their own service. Sometimes it would be more convenient if a
local update command exists that also supports airgapped updates or
helps a user to quickly jump between versions to reproduce an error.

Add a flatcar-update tool (similar to flatcar-install) which users can
run on the machine to force an update to a particular release or local
update payload. On old machines this script can be fetched and
executed, too, and should be CoreOS-compatible. Since update-engine
does no version check, it's also possible to downgrade with the tool.
The tool can disable updates after it ran, making it easy to do manual
updates when no own Nebraska server exists.
Copy link
Contributor

@tormath1 tormath1 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for this :)

@pothos pothos merged commit 58360ed into flatcar-master Dec 2, 2021
@pothos pothos deleted the kai/flatcar-update branch December 2, 2021 13:05
pothos added a commit to flatcar-archive/coreos-overlay that referenced this pull request Dec 2, 2021
This pulls in flatcar/init#53 to add the
"flatcar-update" tool to the image, easing manual updates, rollbacks,
channel/release jumping, and airgapped updates.
pothos added a commit to flatcar-archive/coreos-overlay that referenced this pull request Dec 2, 2021
This pulls in flatcar/init#53 to add the
"flatcar-update" tool to the image, easing manual updates, rollbacks,
channel/release jumping, and airgapped updates.
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