Univention Bugzilla – Bug 37144
Remove old kernel from EC2 image
Last modified: 2019-11-18 16:28:27 CET
Our EC2 images should only contain the latest kernel, but currently contains all previous kernels: Found linux image: /boot/vmlinuz-3.10.0-ucs81-amd64 Found linux image: /boot/vmlinuz-3.10.0-ucs73-amd64 Found linux image: /boot/vmlinuz-3.10.0-ucs58-amd64 Found linux image: /boot/vmlinuz-3.10.0-ucs46-amd64 Found linux image: /boot/vmlinuz-3.10.0-ucs43-amd64 Include the following command in the preparation step for new images: aptitude remove '?and(?installed, ?and(?name(linux-image-*), ?not(?reverse-Depends(?and(?name(univention-kernel-image-*), ?version(TARGET))))))' (from <http://bygga.knut.univention.de/blog/?p=116>)
UCS-4.2-3 and UCS-4.1-5 are cleaned. Bug remains open util process is adapted to remove old kernel images for each future AMI.
WORKSFORME: EC2 AMIs are created from scratch from a DVD installation and contain only one kernel.
OK. Nothing to release.