/var/lib/dpkg/info/dracut.postinst has following code:
```
mk_initrd() {
if ls /boot/vmlinu[zx]-* >/dev/null 2>&1; then
# Regenerate initramfs for all kernel that are installed
for kversion in `ls /boot/vmlinu[zx]-* | sed -e 's#/boot/vmlinu.-##'`;
do
/etc/kernel/postinst.d/dracut $kversion
done
fi
}
```
/var/lib/dpkg/info/initramfs-tools.postinst has following code in
contrast:
```
DPKG_MAINTSCRIPT_PACKAGE='' update-initramfs -u
```
dracut.postinst should only update the initrd for the latest kernels and
the ones that are missing, but do not update old ones.
** Changed in: dracut (Ubuntu)
Importance: Undecided => High
** Changed in: dracut (Ubuntu)
Status: New => Triaged
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2048990
Title:
Switching to dracut regenerates all old initrds, which is not optimal
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dracut/+bug/2048990/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs