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

Reset fails on raw images #3025

Open
Itxaka opened this issue Nov 19, 2024 · 2 comments
Open

Reset fails on raw images #3025

Itxaka opened this issue Nov 19, 2024 · 2 comments
Labels
area/raw bug Something isn't working triage Add this label to issues that should be triaged and prioretized in the next planning call

Comments

@Itxaka
Copy link
Member

Itxaka commented Nov 19, 2024

Reset fails in arm images because it cant find the state partition. But on RAW images we only ship the recovery and oem partition so this doesnt work.

image

@Itxaka Itxaka added bug Something isn't working triage Add this label to issues that should be triaged and prioretized in the next planning call unconfirmed area/raw labels Nov 19, 2024
@dnugmanov
Copy link

You need to create partition before resetting, your disk should have enough free space in the end of the disk where COS_RECOVERY is located or separate disk.

I am using:

    - name: "Repart image"
      layout:
        device:
          label: COS_RECOVERY
        add_partitions:
          - fsLabel: COS_STATE
            size: 50000 <-- adjust this.
            pLabel: state
          - fsLabel: COS_PERSISTENT
            pLabel: persistent
            size: 0
            filesystem: "ext4"
    - name: "Deploy kairos"
      commands:
      - kairos-agent --debug reset --unattended
      - touch /usr/local/.deployed
      - reboot
      if: '[ -f "/run/cos/recovery_mode" ] && [ ! -e /usr/local/.deployed ]'

@Itxaka
Copy link
Member Author

Itxaka commented Nov 19, 2024

yeah, this used to work automatically without the need for creating the partition, as the reset would recreate it. There is even a comment on the reset part as we could not remember where the state recreation was needed for: https://github.com/kairos-io/kairos-agent/blob/main/pkg/action/reset.go#L119

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/raw bug Something isn't working triage Add this label to issues that should be triaged and prioretized in the next planning call
Projects
Status: No status
Development

No branches or pull requests

2 participants