One way is completely remove the unit (who in right mind does install updates during reboot on production servers?). I will be actively doing that on all machines I encounter.
Another way is this:
sed -i 's#/var/run/#/run/#g' /usr/share/unattended-upgrades/unattended-upgrade-shutdown
So the problem with that sed is that the logging part will fail. So not really a solution.
Systemd has proven to be inconsistent pile of crap so far...
I could not make systemd to run this unit before local-fs.target. It appears that the documentation is misleading...
I have tested this and it does NOT work.
I fixed the issue in couple of different ways:
One way is completely remove the unit (who in right mind does install updates during reboot on production servers?). I will be actively doing that on all machines I encounter.
Another way is this: run/#/run/ #g' /usr/share/ unattended- upgrades/ unattended- upgrade- shutdown
sed -i 's#/var/
So the problem with that sed is that the logging part will fail. So not really a solution.
Systemd has proven to be inconsistent pile of crap so far...
I could not make systemd to run this unit before local-fs.target. It appears that the documentation is misleading...