This may or may not be an issue, but here are my observations. The order
of operations seems to be the cause of my issue with the additional
factor that the /boot partition size is unusually small compared to
recent Ubuntu installations.

Order of operations as follows:

1. unattended-install script is run
2. removes packages found in /etc/kernel/postinst.d/apt-auto-removal
3. Installs new kernel
4. creates new /etc/kernel/postinst.d/apt-auto-removal

At this point it does not remove any old packages after the new kernel
is installed. However, when unattended-install is run a second time it
will remove those packages. This seems like an awkward approach.
Ideally, the old kernel packages would get removed the first run of
unattended-install. I considered safety concerns in removing older
kernels after an update but then it still gets removed on a second run.
It is also there is a setting here that I overlooked.

I applied a work around in kernel/postinst.d/zzz_autoremove to simply
run apt-get autoremove -y a few seconds after unattended-install is
completed. This approach is not ideal but functional for this
potentially unique issue.

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

Title:
  "Unattended-Upgrade::Remove-Unused-Dependencies" does not work

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

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

Reply via email to