Package: dracut
Version: 112-8
Severity: important
X-Debbugs-Cc: h…@tavira-net.de
Dear Maintainer,
This is a regression of #753752 ("dracut: Misses support for hooks
before/after initramfs build"), which is now archived and can no
longer be reopened, so filing as a new bug.
Bug#753752 ("dracut: Misses support for hooks before/after initramfs
build") was fixed in dracut 102-1 via
debian/patches/debian-initramfs-post-update.patch, which patched
dracut.sh to run /etc/initramfs/post-update.d/* (via run-parts) at
the end of every dracut invocation, controllable via
NO_POST_UPDATE_HOOKS.
This patch was silently dropped in dracut (110-1):
dracut (110-1) unstable; urgency=medium
* New upstream release.
* Drop all patches applied upstream
...
The changelog states patches were dropped because they were "applied
upstream", but this particular patch was never merged into the
dracut-ng upstream project. /usr/bin/dracut in the current 112-8
package contains no reference to post-update.d or
NO_POST_UPDATE_HOOKS:
$ grep -n 'post-update\|NO_POST_UPDATE_HOOKS' /usr/bin/dracut
(no output)
As a result, /etc/initramfs/post-update.d/ hooks (e.g. bootloader
integration scripts such as zz-update-gummiboot or custom
ukify-based hooks) are no longer invoked reliably on kernel
installation. They currently only fire by accident, via the
dpkg "update-initramfs" trigger (debian/dracut.postinst), when some
unrelated package (busybox, kmod, udev, amd64-microcode, etc.) that
activates that trigger happens to be upgraded in the same
transaction as the kernel. A plain kernel-only install
(/etc/kernel/postinst.d/dracut calling "dracut --force ..." directly)
never runs post-update.d hooks at all.
Please re-apply debian-initramfs-post-update.patch (or an equivalent
fix) so that dracut runs /etc/initramfs/post-update.d/ hooks after
every image build again.
Thanks,
Hendrik Iseke
-- System Information:
Debian Release: forky/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 7.3.4+deb14-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages dracut depends on:
ii dracut-core 112-8
ii linux-base 4.17
dracut recommends no packages.
Versions of packages dracut suggests:
pn dracut-network <none>
-- no debconf information
Bug#1153809: dracut: post-update.d hooks regression (regression of #753752)
- From
- Hendrik Iseke <h…@tavira-net.de>
- Reply-To
- Hendrik Iseke <h…@tavira-net.de>, 1153…@bugs.debian.org
- Sender
- robo…@news.nic.it
- Organization
- linux.* mail to news gateway
- Message-ID
- <NYz8…@gated-at.bofh.it>
- Date
- Newsgroups
- linux.debian.bugs.dist, linux.debian.kernel
Moderated This group is moderated.