On 10 October 2014 11:24, mark johnson <[email protected]> wrote: > This script gets a list of all linux-image-* that have added files to > /boot except for the latest and (if different) currently running kernel, > them removes the rest. > > If this was part of the post-install script for kernel packages, then > you'd only have 2 kernels installed at once, and /boot would never fill > up. > > https://gist.github.com/marxjohnson/5f0f0607255951ee0e7a >
The dpkg database is locked, when a given's package postinst is run, thus one cannot remove packages as part of installation of another one. We already have scripts in place to mark old kernels for auto-removal, however we do not enable autoremoval by default. Thus it's easier to enable unattended upgrades and set Unattended-Upgrade::Remove-Unused-Dependencies to true. -- Regards, Dimitri. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1067106 Title: possible to run out of space on /boot partition when installed using auto recipe & full-disk-encryption To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/partman-auto-crypto/+bug/1067106/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
