Sunil Mohan Adapa bc116e028a
main: Run package operations immediately after startup
- 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>
2025-04-07 20:59:21 -04:00
..
2025-04-06 16:46:44 +02:00
2025-03-25 10:09:23 -04:00
2021-09-20 16:50:37 -04:00