Bug#1151014: grub2: 10_linux should skip incomplete kernel images with pending postinst trigger and missing initrd
Viktor Pashaiev
w.paszajew at gmail.com
Wed Nov 4 13:47:38 GMT 2026
Control: tags -1 + patch
Attached is an updated version of the patch:
- Moves the check inside the existing `test -z "${initramfs}" && test -z "${initrd_real}"` block in `util/grub.d/10_linux.in` (and adds the matching check to `util/grub.d/20_linux_xen.in`).
- Guards the skip check on `GRUB_DISABLE_INITRD != true`, empty `GRUB_FORCE_PARTUUID`, and an executable `/etc/kernel/postinst.d/initramfs-tools` or `/etc/kernel/postinst.d/dracut` hook, so initrd-less cloud images are unaffected when `update-grub` runs from inside `/usr/lib/linux/triggers/<version>`.
Thanks,
Viktor Pashaiev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: skip-incomplete-kernel-without-initrd.patch
Type: text/x-diff
Size: 1898 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-grub-devel/attachments/20261104/9544140b/attachment.patch>
More information about the Pkg-grub-devel
mailing list