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-reset tool for selective OS reset #91

Merged
merged 1 commit into from
Feb 28, 2023

Conversation

pothos
Copy link
Member

@pothos pothos commented Feb 24, 2023

This introduces a tool to use the added bootengine logic for selective OS resets, cleaning the rootfs of old state while keeping wanted paths. The main idea is to use it to rerun Ignition without reformatting the root filesystem completely but still ensuring to have no config drift due to old configs and their side effects.
Add a helper that simplifies the regex path specification and takes care of the additional tasks like setting up the first boot, Ignition file/URL, and the machine ID kernel cmdline parameter.

How to use

With flatcar/bootengine#55

Testing done

See linked PR

shellcheck bin/flatcar-reset has one info that can be ignored

@pothos pothos requested a review from a team February 24, 2023 10:42
pothos added a commit to flatcar-archive/coreos-overlay that referenced this pull request Feb 24, 2023
This pulls in
flatcar/bootengine#55 and
flatcar/init#91 for a `flatcar-reset` tool and
boot logic for selective OS resets, cleaning the rootfs of old state
while keeping wanted paths, e.g., when reconfiguring the system with
Ignition.
bin/flatcar-reset Outdated Show resolved Hide resolved
bin/flatcar-reset Outdated Show resolved Hide resolved
bin/flatcar-reset Outdated Show resolved Hide resolved
bin/flatcar-reset Outdated Show resolved Hide resolved
bin/flatcar-reset Outdated Show resolved Hide resolved
pothos added a commit to flatcar-archive/coreos-overlay that referenced this pull request Feb 27, 2023
This pulls in
flatcar/bootengine#55 and
flatcar/init#91 for a `flatcar-reset` tool and
boot logic for selective OS resets, cleaning the rootfs of old state
while keeping wanted paths, e.g., when reconfiguring the system with
Ignition.
bin/flatcar-reset Show resolved Hide resolved
bin/flatcar-reset Outdated Show resolved Hide resolved
pothos added a commit to flatcar-archive/coreos-overlay that referenced this pull request Feb 28, 2023
This pulls in
flatcar/bootengine#55 and
flatcar/init#91 for a `flatcar-reset` tool and
boot logic for selective OS resets, cleaning the rootfs of old state
while keeping wanted paths, e.g., when reconfiguring the system with
Ignition.
This introduces a tool to use the added bootengine logic for selective
OS resets, cleaning the rootfs of old state while keeping wanted paths.
The main idea is to use it to rerun Ignition without reformatting the
root filesystem completely but still ensuring to have no config drift
due to old configs and their side effects.
Add a helper that simplifies the regex path specification and takes
care of the additional tasks like setting up the first boot, Ignition
file/URL, and the machine ID kernel cmdline parameter.
pothos added a commit to flatcar-archive/coreos-overlay that referenced this pull request Feb 28, 2023
This pulls in
flatcar/bootengine#55 and
flatcar/init#91 for a `flatcar-reset` tool and
boot logic for selective OS resets, cleaning the rootfs of old state
while keeping wanted paths, e.g., when reconfiguring the system with
Ignition.
@pothos pothos requested a review from a team February 28, 2023 13:10
@pothos pothos merged commit 7eaf602 into flatcar-master Feb 28, 2023
@pothos pothos deleted the kai/os-reset branch February 28, 2023 14:41
pothos added a commit to flatcar-archive/coreos-overlay that referenced this pull request Feb 28, 2023
This pulls in
flatcar/bootengine#55 and
flatcar/init#91 for a `flatcar-reset` tool and
boot logic for selective OS resets, cleaning the rootfs of old state
while keeping wanted paths, e.g., when reconfiguring the system with
Ignition.
@pothos pothos linked an issue Feb 28, 2023 that may be closed by this pull request
t-lo pushed a commit to flatcar/scripts that referenced this pull request Apr 17, 2023
This pulls in
flatcar/bootengine#55 and
flatcar/init#91 for a `flatcar-reset` tool and
boot logic for selective OS resets, cleaning the rootfs of old state
while keeping wanted paths, e.g., when reconfiguring the system with
Ignition.
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.

[RFE] OS reset helper
3 participants