Skip to content
This repository has been archived by the owner on Sep 30, 2022. It is now read-only.

Feature Request: Adding 'post_(rauc)_install' hooks (like in rauc) #23

Open
delhiryder opened this issue Apr 9, 2020 · 0 comments
Open
Labels
RFE Request for Enhancement

Comments

@delhiryder
Copy link

delhiryder commented Apr 9, 2020

Hello,

We have successfully integrated the rauc-hawkbit-client into our embedded system. We are running it as a systemd service, which periodically polls the hawkbit server, then downloads the rauc bundle when it is added to a live 'rollout'. The client then uses the dbus api to update the rauc slot(s).

The issue we are facing is a race between a post_install.sh script that we have added to the rauc.conf file (this essentially stores some app state in a persistent data partition and triggers a reboot) and the final 'POST' message that the rauc-hawkbit-client state machine generates (this is what informs the hawkbit server that the install was successful).

As things stand right now, the rauc-hawkbit-client process simply issues this post after the last rauc command ('writing the new slot and verifying it'), which is 'too soon' for us. Ideally, as the application programmer, we would like to make this call 'at will' (i.e. after verifying that the update succeeded, probably after a restart).

Do you have any plans for introducing such file based hooks (or can you point us in the right direction, in case we want to add them to this project) ?

Thanks,

Sidd (delhiryder)

@ejoerns ejoerns added the RFE Request for Enhancement label Apr 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
RFE Request for Enhancement
Projects
None yet
Development

No branches or pull requests

2 participants