[Bug 2048990] Re: Switching to dracut regenerates all old initrds, which is not optimal

Benjamin Drung 2048990 at bugs.launchpad.net
Thu Sep 12 17:52:01 UTC 2024


/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
Foundations Bugs, which is subscribed to dracut in Ubuntu.
Matching subscriptions: dracut
https://bugs.launchpad.net/bugs/2048990

Title:
  Switching to dracut regenerates all old initrds, which is not optimal

Status in dracut package in Ubuntu:
  Triaged

Bug description:
  It seems we'd want to only update the current kernel so old ones don't
  fail to boot

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dracut/+bug/2048990/+subscriptions




More information about the foundations-bugs mailing list