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

Conversation

sairon
Copy link
Member

@sairon sairon commented Jun 20, 2024

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.

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 sairon added the os label Jun 20, 2024
@sairon sairon requested a review from agners June 20, 2024 11:13
Shellcheck can't really follow anything in CI.
@sairon sairon merged commit 6c7b6fd into dev Jun 20, 2024
2 checks passed
@sairon sairon deleted the generate-rauc-db-version-if-empty branch June 20, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants