Skip to content
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

Fix reset #565

Merged
merged 4 commits into from
Sep 27, 2024
Merged

Fix reset #565

merged 4 commits into from
Sep 27, 2024

Commits on Sep 27, 2024

  1. Fix reset

    Seems like witht he older ghw, we were not receiving all the proper
    partitions and mountpoints and such, so on reset we could blindily try
    to unmount all partitions and call it a day.
    
    But now we get info about all of them, so doing so will even unmount the
    current recovery partition, where the reset source is at, thus failing
    the reset copy.
    
    This patch fixes it by instead of going crazy, making sure we have an
    order mount/unmount of the proper places at the proper times and we
    restore everything as is once we are done with it
    
    Signed-off-by: Itxaka <itxaka@kairos.io>
    Itxaka committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    60f7586 View commit details
    Browse the repository at this point in the history
  2. Cast to string

    Signed-off-by: Itxaka <itxaka@kairos.io>
    Itxaka committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    7909734 View commit details
    Browse the repository at this point in the history
  3. Fix tests

    As we were not providing any mountpoints for our fake partitions, reset
    test failed to work
    
    Signed-off-by: Itxaka <itxaka@kairos.io>
    Itxaka committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    1e885ca View commit details
    Browse the repository at this point in the history
  4. TODO

    Signed-off-by: Itxaka <itxaka@kairos.io>
    Itxaka committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    efa3762 View commit details
    Browse the repository at this point in the history