Skip to content

Comments

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

Merged
pothos merged 1 commit intoflatcar-masterfrom
kai/flatcar-update
Dec 2, 2021
Merged

bin: add flatcar-update tool for manual updates or airgapped updates#53
pothos merged 1 commit intoflatcar-masterfrom
kai/flatcar-update

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)

@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.
@pothos pothos force-pushed the kai/flatcar-update branch from 8899bcb to e3084b6 Compare December 2, 2021 11:16
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