mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
- When service is started, check if there are any configuration file prompts pending and perform package updates. - When service is started, check if there are any package version updates that require app re-run. - These operations are done in the same thread that does app version upgrade. All three operations don't race against each other for apt lock. On the downside, some operations may get delayed if previous operation fails temporarily. Tests: - After service starts, after 'Setup completed' message we can see messages 'Attempting to perform post-dpkg operations', 'Completed post-dpkg operations', 'Attempting to perform upgrade', and 'Completed upgrade'. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>