Bug 37144 - Remove old kernel from EC2 image
Summary: Remove old kernel from EC2 image
Status: CLOSED WORKSFORME
Alias: None
Product: UCS Test
Classification: Unclassified
Component: General
Version: unspecified
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: Erik Damrose
QA Contact: Philipp Hahn
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-02 10:53 CET by Philipp Hahn
Modified: 2019-11-18 16:28 CET (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2014-12-02 10:53:18 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>)
Comment 1 Philipp Hahn univentionstaff 2017-12-04 13:28:22 CET
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.
Comment 2 Erik Damrose univentionstaff 2019-10-08 17:23:34 CEST
WORKSFORME: EC2 AMIs are created from scratch from a DVD installation and contain only one kernel.
Comment 3 Philipp Hahn univentionstaff 2019-11-18 16:28:27 CET
OK. Nothing to release.