Commit a80b83a
committed
cli: support the stateroot option also on
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]>switch
1 parent 1fd6c69 commit a80b83a
2 files changed
+35
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
| |||
628 | 631 | | |
629 | 632 | | |
630 | 633 | | |
631 | | - | |
| 634 | + | |
632 | 635 | | |
633 | 636 | | |
634 | 637 | | |
| |||
687 | 690 | | |
688 | 691 | | |
689 | 692 | | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
690 | 703 | | |
691 | 704 | | |
692 | 705 | | |
693 | 706 | | |
694 | 707 | | |
695 | 708 | | |
696 | | - | |
697 | | - | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
698 | 714 | | |
699 | 715 | | |
700 | 716 | | |
701 | 717 | | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
702 | 729 | | |
703 | 730 | | |
704 | 731 | | |
| |||
712 | 739 | | |
713 | 740 | | |
714 | 741 | | |
715 | | - | |
716 | | - | |
| 742 | + | |
717 | 743 | | |
718 | 744 | | |
719 | 745 | | |
| |||
766 | 792 | | |
767 | 793 | | |
768 | 794 | | |
769 | | - | |
| 795 | + | |
770 | 796 | | |
771 | 797 | | |
772 | 798 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
376 | | - | |
377 | 376 | | |
378 | 377 | | |
379 | 378 | | |
| |||
396 | 395 | | |
397 | 396 | | |
398 | 397 | | |
399 | | - | |
| 398 | + | |
400 | 399 | | |
401 | 400 | | |
402 | 401 | | |
| |||
422 | 421 | | |
423 | 422 | | |
424 | 423 | | |
| 424 | + | |
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
| 429 | + | |
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| |||
0 commit comments