Package: unattended-upgrades
Version: 0.93.1
Followup-For: Bug #837155
It affects also me.
I have /var located on BTRFS subvolume and mounted by fstab entry:
UUID=2c096852-642b-4fe7-8d28-05d3e63ebd81 /var btrfs
compress=no,defaults,subvol=@/@var 0 0
During reboot systemd stucks waiting for unattended-upgrades to finish (15
minutes timeout). I noticed that /var was unmounted before.
To fix it I've implemented proposed fix by adding file
/etc/systemd/system/unattended-upgrades.service.d/mounts.conf
With content
[Unit]
RequiresMountsFor=/var/log
-- System Information:
Debian Release: 9.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.9.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages unattended-upgrades depends on:
ii apt 1.4~rc1
ii apt-utils 1.4~rc1
ii debconf [debconf-2.0] 1.5.60
ii init-system-helpers 1.47
ii lsb-base 9.20161125
ii lsb-release 9.20161125
ii python3 3.5.3-1
ii python3-apt 1.4.0~beta2
ii ucf 3.0036
ii xz-utils 5.2.2-1.2
Versions of packages unattended-upgrades recommends:
ii anacron 2.3-23
ii cron [cron-daemon] 3.0pl1-128
Versions of packages unattended-upgrades suggests:
ii bsd-mailx 8.1.2-0.20160123cvs-3
ii exim4-daemon-light [mail-transport-agent] 4.88-5
pn needrestart <none>
-- Configuration Files:
/etc/apt/apt.conf.d/50unattended-upgrades changed [not included]
-- debconf information:
unattended-upgrades/origins_pattern:
"origin=Debian,codename=${distro_codename},label=Debian-Security";
unattended-upgrades/enable_auto_updates: false