I cannot reproduce this issue on Ubuntu 24.04:
```
$ schroot-wrapper -c noble -u root -p
linux-image-generic,initramfs-tools,linux-image-6.8.0-52-generic,linux-image-6.8.0-53-generic
(noble)root@host:~# apt-mark auto linux-image-6.8.0-52-generic
linux-image-6.8.0-53-generic
(noble)root@host:~# apt-get autoremove
[...]
Removing linux-image-6.8.0-52-generic (6.8.0-52.53) ...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-6.8.0-53-generic
I: /boot/initrd.img.old is now a symlink to initrd.img-6.8.0-53-generic
I: /boot/vmlinuz is now a symlink to vmlinuz-6.8.0-54-generic
I: /boot/initrd.img is now a symlink to initrd.img-6.8.0-54-generic
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-6.8.0-52-generic
Removing linux-modules-6.8.0-52-generic (6.8.0-52.53) ...
```
So I assume that it has been fixed since then. Please report back if you
can still see the issue.
** Changed in: initramfs-tools (Ubuntu)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1554455
Title:
"update-initramfs" is executed several times when you remove old
kernels
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1554455/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs