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

rauc: use InstallBundle and InspectBundle instead of deprecated DBus methods #69

Merged
merged 3 commits into from
Jun 25, 2024

Conversation

hnez
Copy link
Member

@hnez hnez commented May 31, 2024

This makes it so we no longer use deprecated RAUC DBus APIs.

The Install -> InstallBundle migration is straight forward.

The Info -> InspectBundle migration is a bit trickier, since RAUC provides the results as nested dictionaries (and also arrays nested inside of that, but we do not currently need any info from those).
This requires a fair bit of type conversions at runtime and the use of some rather funky generics from the zvariants crate.
There are probably more elegant solutions to implement the tacd-side of this, but for now zvariant_walk_nested_dicts gives us something that works.

@hnez hnez requested review from jluebbe and KarlK90 May 31, 2024 09:39
@hnez hnez force-pushed the rauc-dbus-update branch from 931a6be to f720903 Compare May 31, 2024 11:02
@hnez hnez force-pushed the rauc-dbus-update branch from f720903 to 960509e Compare June 25, 2024 06:41
hnez added 3 commits June 25, 2024 10:44
This matches what we currently see in recent stable bundles.

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
The InstallBundle method allows providing a dictionary of extra arguments,
which makes it more flexible than Install.
We do not use this flexibility yet, but with this update we can at least
get rid of the stigma of using a deprecated API.

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
The InspectBundle method allows providing a dictionary of extra arguments,
which makes it more flexible than Info.
We do not need this flexibility yet, but at least we no longer use a
deprecated API.

Signed-off-by: Leonard Göhrs <l.goehrs@pengutronix.de>
@hnez hnez force-pushed the rauc-dbus-update branch from 960509e to 38547a5 Compare June 25, 2024 08:44
@hnez hnez merged commit 0877d1b into linux-automation:main Jun 25, 2024
10 checks passed
@hnez hnez deleted the rauc-dbus-update branch June 25, 2024 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants