Public bug reported:
Purge the kernel and you will be left with the initramfs in /boot and
/var/lib/initramfs-tools. This is handled correctly for linux-generic
/linux-virtual.
* Launch a bionic/cosmic AWS image
* Purge the kernel
$ sudo apt-get purge --assume-yes '^linux-.*' 'linux-base+' initramfs*
$ ls /boot/
grub initrd.img-4.15.0-1021-aws
$ ls /var/lib/initramfs-tools/
4.15.0-1021-aws
This was seen with Bionic and Cosmic with linux-aws and linux-kvm
Impact: during cloud image builds we remove one kernel and install the
optimized kernel like linux-aws. The missing cleanup consumes disk
space for images that are meant to be small; it also surfaces a latent
bug in initramfs-tools where mkinitramfs will attempt to run to update
every initramfs in /var/lib/initramfs-tools/ when it is only half-
configured and it falls over. We'll work around this but the kernels
should clean up when purged.
** Affects: linux-aws (Ubuntu)
Importance: Undecided
Status: New
** Affects: linux-kvm (Ubuntu)
Importance: Undecided
Status: New
** Also affects: linux-kvm (Ubuntu)
Importance: Undecided
Status: New
** Summary changed:
- Purging the kernel does not remove initramfs
+ Purging the custom kernel does not remove initramfs
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1793290
Title:
Purging the custom kernel does not remove initramfs
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-aws/+bug/1793290/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs