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

Supply a valid config.yaml for raw images if users dont #3026

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

Supply a valid config.yaml for raw images if users dont #3026

Itxaka opened this issue Nov 19, 2024 · 0 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

If you create a raw image and dont provide a config file it will generate a raw image thaqt its fully invalid., You cant loging into it, you cant reset, etc..

We should probably provide a default config that at least sets stuff.

example provided by @dnugmanov

#cloud-config
name: "Default user"
stages:
  initramfs:
    - name: "Set default user/pass"
      users:
        kairos:
          passwd: "kairos"
          groups:
            - "admin"
    - name: "Repart image"
      layout:
        device:
          label: COS_RECOVERY
        add_partitions:
          - fsLabel: COS_STATE
            size: 8000
            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 Itxaka added bug Something isn't working triage Add this label to issues that should be triaged and prioretized in the next planning call area/raw labels Nov 19, 2024
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

1 participant