upgrades: Inhibit shutdown during dist-upgrade

Tests:

- Start a dist-upgrade from stable to testing. Dist upgrade is completed
  as expected. "The system will reboot" message appears only after
  freedombox-dist-upgrade.service has completed.

Helps: #2090

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy 2025-02-05 17:11:20 -05:00 committed by Sunil Mohan Adapa
parent 674da2b9c8
commit d0e25e5239
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -75,7 +75,8 @@ Description=Upgrade to new stable Debian release
[Service]
Type=oneshot
ExecStart=/usr/share/plinth/actions/actions upgrades dist_upgrade --no-args
ExecStart=systemd-inhibit /usr/share/plinth/actions/actions \
upgrades dist_upgrade --no-args
KillMode=process
TimeoutSec=12hr
'''