-
Notifications
You must be signed in to change notification settings - Fork 304
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
Factory reset with OSTree #1793
Comments
You generally shouldn't change anything under
However, that will also e.g. remove We also don't currently have a model for "factory" kernel arguments, and hence no way to reset those. But the high level intent is that almost all state is under |
That is something I can do, but not from outside a deployment. If I wanted to do this from an installer, for example, it would be nice to be able to do something like Kernel arguments can be specified somehow from /usr or even be left blank like they are on the default deployment. They aren't an issue; anything important should be run with |
My factory restore is a secure erase of (a separate) Then again my use case is for thousands of completely identical devices, modulo a very small amount of state which I store outside of the standard filesystem. |
@cgwalters I tested the commands you gave, and they have the right idea I've had most success running this set of commands:
I have a goal of getting the system to boot with an empty /etc (which it cannot do at the moment). I'm waiting for systemd/systemd#11287 for this It would still be nice to be able to wipe these directories from an external mount, like from recovery media. How would I do that? Thank you |
A factory reset that has worked well for me is:
This only covers The beauty of it is that it doesn't affect the running system, and is not affected by programs using The one risk is that there may be a crash or poweroff between the |
One option would be to add an option to |
All of the underlying libostree APIs have supported passing `NULL` for a merge deployment for...a long time. But we never plumbed it up into the CLI. Add a `--no-merge` option to aid people who want to do a "factory reset": ostreedev#1793
Well, that was easy: #2081 Do note though this will also reset kernel arguments; you can |
All of the underlying libostree APIs have supported passing `NULL` for a merge deployment for...a long time. But we never plumbed it up into the CLI. Add a `--no-merge` option to aid people who want to do a "factory reset": ostreedev#1793
All of the underlying libostree APIs have supported passing `NULL` for a merge deployment for...a long time. But we never plumbed it up into the CLI. Add a `--no-merge` option to aid people who want to do a "factory reset": ostreedev#1793
All of the underlying libostree APIs have supported passing `NULL` for a merge deployment for...a long time. But we never plumbed it up into the CLI. Add a `--no-merge` option to aid people who want to do a "factory reset": ostreedev#1793
Does it also clear |
No, ostree will never touch |
Hello!
What would be a safe way to "factory reset" an OSTree deployment?
I'm unsure what folders I can delete from
/ostree
to clear out/etc
and/var
without messing anything up.It would be nice if there was an
ostree admin reset
command that would wipe out these folders safelyThank you! Happy holidays!
The text was updated successfully, but these errors were encountered: