Package: unattended-upgrades
Version: 0.86.5
Severity: normal
Hi,
I usually have / on a cheap SSD and /var & /home on a HDD.
I noticed that files got created in /var/ in the root
partition, thus before /var got mounted or
more likely after /var got unmounted.
/mnt/var/run/unattended-upgrades.lock
/mnt/var/log/unattended-upgrades/unattended-upgrades-shutdown.log
There's a specific systemd option to fix this:
"RequiresMountsFor=/var/log"
This will also fix /var/run,
as this should always be a link to /run.
---
Also, the line "if apt_pkg.config.find_b("Unattended-
Upgrade::InstallOnShutdown", False):" should be duplicated
before the previous paragrah to avoid creating
an always-empty unattended-upgrades-shutdown.log
if this feature is not used.
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (500, 'testing'), (450, 'unstable'), (400, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.3.0-1-amd64 (SMP w/6 CPU cores)
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.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.1.10
ii apt-utils 1.1.10
ii debconf [debconf-2.0] 1.5.58
ii init-system-helpers 1.24
ii lsb-base 9.20150917
ii lsb-release 9.20150917
ii python3 3.4.3-7
ii python3-apt 1.1.0~beta1
ii ucf 3.0031
ii xz-utils 5.1.1alpha+20120614-2.1
Versions of packages unattended-upgrades recommends:
ii systemd-cron [cron-daemon] 1.5.3-1
Versions of packages unattended-upgrades suggests:
pn bsd-mailx <none>
ii nullmailer [mail-transport-agent] 1:1.13-1
-- debconf information:
unattended-upgrades/origins_pattern:
"origin=Debian,codename=${distro_codename},label=Debian-Security";
* unattended-upgrades/enable_auto_updates: true