rauc / rauc-hawkbit-updater

The RAUC hawkBit updater is a simple commandline tool/daemon that runs on your target and interfaces between RAUC and hawkBit's DDI API.
https://rauc-hawkbit-updater.readthedocs.io
GNU Lesser General Public License v2.1
58 stars 36 forks source link

Use RAUC's InstallBundle() D-Bus method instead of Install() #129

Closed Bastian-Krause closed 2 years ago

Bastian-Krause commented 2 years ago

Starting with RAUC v1.3, a new InstallBundle() D-Bus method for triggering installations was introduced. Compared to the older Install() method, this one allows passing additional options to the installation process. This will be needed in a future PR introducing streaming support in rauc-hawkbit-updater.

The older Install() method was deprecated and is likely to be removed in any later versions of RAUC.

To be able to use the new method, sync the D-Bus interface XML with upstream RAUC, adjust the dummy D-Bus interface for testing to expose the method and use the new method in rauc-hawkbit-updater's rauc-installer accordingly. While at it, implement the remaining D-Bus properties as stubs to make org.freedesktop.DBus.Properties.GetAll() happy, thus preventing unrelated exceptions in the test suite.