Hello, For info, this also has the potential effect of blocking shutdown (see Ubuntu's LP: #1654600 [1]) for details.
The unattended-upgrade-shutdown script uses a lock in /var/run to check if an upgrade job is running. After /var is unmounted, /var/run is no longer present and apt_pkg.get_lock() return -1 which normally means that the lock cannot be taken. In this case, -1 is caused by the fact that the /var/run path no longer exists. The lock appears to be present, so unattended-upgrade-shutdown waits for it to go away. The delay to timeout is 10 minutes so the shutdown may block for 10 minutes. Thought it was worth mentionning. Kind regards, ...Louis [1] https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1654600 -- Louis Bouchard Software engineer, Ubuntu Developer / Debian Maintainer GPG : 429D 7A3B DD05 B6F8 AF63 B9C4 8B3D 867C 823E 7A61