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

Generate version information for RAUC when rauc.db is empty #3436

Merged
merged 3 commits into from
Jun 20, 2024

Commits on Jun 20, 2024

  1. Generate version information for RAUC when rauc.db is empty

    RAUC currently doesn't know the version of the booted slot when booted for the
    first time or after wiping the data partition. As a result `ha os info` is
    missing this information too.
    
    As there's no built-in mechanism for generating these data by RAUC itself, add
    a oneshot service that checks if the boot slot information is contained in the
    rauc.db and if not, then generate it.
    
    RAUC seems to cope quite well even with bogus data contained in rauc.db but in
    any case, a test has been added to check that everything works as expected.
    sairon committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    cc307a4 View commit details
    Browse the repository at this point in the history
  2. Disable SC1091 in raucdb-update

    Shellcheck can't really follow anything in CI.
    sairon committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    ac25c35 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b6f10e3 View commit details
    Browse the repository at this point in the history