Before=shutdown.target reboot.target halt.target network.target local-
fs.target

should be

Before=shutdown.target reboot.target halt.target network.target
After=local-fs.target

because, AIUI, at shutdown, "Before" means "After" and "After" means
"Before".

So unattended-upgrades.service's ExecStop'll start before local-
fs.target, so before "/var" is unmounted and "/var/log" and "/var/run"
are gone.

[Why is "/var/run" used? This is a native Ubuntu package; are there any
versions of Ubuntu where "/var/run" isn't a symlink to "/run"?]

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1654600

Title:
  unattended-upgrade-shutdown hangs when /var is a separate filesystem

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1654600/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to