Control: reassign -1 lightdm

Hi Yvan,

On Fri, Apr 23, 2021 at 9:21 PM Yvan Masson <y...@masson-informatique.fr> wrote:
>
> Package: unattended-upgrades
> Version: 2.8
> Severity: normal
>
> Dear Maintainer,
>
> I am preparing some Debian 11 desktops (for when it will be the new
> stable). The setup is very simple: no root account, one partition, tasks
> desktop/Cinnamon/standard tools/SSH. Unattended-upgrades is configured
> to install updates on shutdown (see 1): upgrading works properly, but is
> very disturbing for the users:
>
> When the user chooses to shutdown or reboot the computer from his
> Cinnamon session, the session does not close until all updates are
> applied. While waiting:
> - icons on the desktop disappear
> - the usual menu that allows choosing between
> suspend/hibernate/reboot/cancel/shutdown won't appear again (see 2)
> - it is still possible to start applications
>
> When a user session has been opened, then closed, and the user clicks on
> shutdown or reboot from LightDM, the behavior is similar: LightDM does
> not stop. It is even possible to log in again, while unattended-upgrades
> is applying updates, but when updates are applied the computer
> shutdowns/reboots as requested originally from LightDM.
>
> I would expect the session to be completely closed, LightDM stopped, and
> the console or Plymouth displaying a message indicating the ongoing
> updates. I am almost sure this has already worked for me in a previous
> Debian version or Ubuntu, with the same setup from me.
>
> Please let me know if you need more information or if you want me to do
> some tests.

The change that took place in unattended-upgrades 1.8:

unattended-upgrades (1.8) unstable; urgency=medium

When InstallOnShutdown was configured unattended-upgrades in
versions before 1.7 installed updates _after_ the shutdown transaction
is started by systemd making maintainer scripts restarting services
fail or wait in a deadlock until being killed by shutdown's timeout
leaving a broken installation behind.

Starting with version 1.7 configuring InstallOnShutdown makes
unattended-upgrades start package installations _before_ the shutdown
transaction is started, when PrepareForShutdown() signal is received
via DBus.

Unattended-upgrades 1.7 also increases logind's InhibitDelayMaxSec to
30 seconds. This allows more time for unattended-upgrades to shut down
gracefully or even install a few packages in InstallOnShutdown mode,
but is still a big step back from the 30 minutes allowed for
InstallOnShutdown previously.

Users enabling InstallOnShutdown mode are advised to increase
InhibitDelayMaxSec even further, possibly to 30 minutes.
--

When shutdown is successfully initiated from a graphical session the
user should be logged out and if the shutdown is successfully
initiated from a login manager it should stop, otherwise any inhibitor
holding up the shutdown can cause the described problems.

Cheers,
Balint

-- 
Balint Reczey
Ubuntu & Debian Developer

Reply via email to