You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 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)
* Copy `/var` from the old stateroot to the new one. I'm doing `--reflink`
but it's still very slow
* Must use the old stateroot to find the `merge_deployment` because
otherwise we boot without the required kargs (it manifested as a
missing `root=UUID=...` which caused the dracut rootfs-generator to
silently fail to create `sysroot.mount` and so `ostree-prepare-root`
failed due to empty `/sysroot`)
Signed-off-by: Omer Tuchfeld <[email protected]>
0 commit comments