Fix ubuntu-minimal to run autoremove

The "ubuntu" target had a post-install 99-autoremove task that removed
unnecessary dependency packages, but the "ubuntu-minimal" target does not.
This patch moves the 99-autoremove post-install task from the "ubuntu" target
to the "ubuntu-common" target so that both will run an autoremove at the end of
the image build.
For the Octavia amphora image, this saved about 1GB in the image by removing
build only package dependencies.

Closes-Bug: #2012406
Change-Id: I4592e3bd502045fa89203c075d3ea8f632e77177
This commit is contained in:
Michael Johnson 2023-03-21 15:16:10 +00:00
parent 9c1ee6dcd8
commit 45544d5038
2 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixed the ubuntu-minimal target to also run autoremove at the end of an
image build.