I am trying to disable automated install for offline updates and require user consent before proceeding with the update. From what I read in the documentation this should be achievable using the Consent API. However, I am not able to get it to work; the update continues to automatically install.
I am running Torizon OS 7.7.0 on a Verdin imx8m plus SOM. My eventual goal is to have a confirmation dialog popup for the user to confirm or cancel the update when a update USB is inserted into the system.
I’ve configured and provisioned my device for offline updates.
This is the contents of my /etc/sota/conf.d/99-offline-updates.toml file:
[uptane]
enable_offline_updates = true
enable_online_updates = false
offline_updates_source = “/media/lockbox”
I can confirm that offline updates are enabled because I can see “Offline Updates are enabled” in the logs.
I disabled the automatic installation by executing this command:
busctl set-property org.uptane.Aktualizr /org/uptane/aktualizr org.uptane.Aktualizr InstallUpdatesAutomatically i 1
I confirmed the parameter is getting set by executing this command:
busctl get-property org.uptane.Aktualizr /org/uptane/aktualizr org.uptane.Aktualizr InstallUpdatesAutomatically
I get “i 1” as the response.
I then insert a USB drive with my update package and monitor the status by looking at the logs.
When I execute “journalctl -f -u aktualizr*” I see the following:
Event: UpdateCheckComplete, Result - Updates available
Event: DownloadProgressReport, Progress at 100%
Event: DownloadTargetComplete, Result - Success
Event: AllDownloadsComplete, Result - Success
Event: InstallStarted
The update continues to install and complete successfully. My issue is that it’s not waiting for user consent. Does the consent feature work for offline updates? Am I configuring it incorrectly? Any help would be appreciated.