Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: support the stateroot option also on
switch
draft, still working out the details and testing, this doesn't work yet # Background <hash> added the `stateroot` option to the `install` subcommand # Issue The `stateroot` option is not available on the `switch` subcommand # Solution Add the `stateroot` option to the `switch` subcommand # Implementation * If the stateroot is different than the current, we should allow using the same image as the currently booted one * Stateroot has to be explicitly created (`init_osname` binding) if it doesn't exist. If it does, we still call `init_osname` and simply ignore the error (TODO: only ignore non-already-exists errors) Signed-off-by: Omer Tuchfeld <[email protected]>
- Loading branch information