Skip to content

Comments

bin: Add flatcar-reset tool for selective OS reset#91

Merged
pothos merged 1 commit intoflatcar-masterfrom
kai/os-reset
Feb 28, 2023
Merged

bin: Add flatcar-reset tool for selective OS reset#91
pothos merged 1 commit intoflatcar-masterfrom
kai/os-reset

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.
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.
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