Bug#470398: initramfs-tools: initrd image not created on custom kernels

1253333122 at noid.net 1253333122 at noid.net
Sat Sep 19 05:08:21 UTC 2009


I consider this to be a fairly important bug (it just bit me :^)...

Perhaps I misunderstand, but is it true that at present, normal users
need to manually update the /etc/kernel/postinst.d/initramfs-tools
script (and the postrm.d one too) using the "example" script from
kernel-package, and this is because the "Debian Build Daemon" could be
broken if the script runs update-initramfs inappropriately...

It makes perfect sense not to break Debian's build system, but I
think it is also quite undesirable to leave things as they are...

I think the script (e.g.: /etc/kernel/postinst.d/initramfs-tools)
could probably be adapted to detect if it's being invoked during an
automated binary build (or not) and "do the right thing"...

I imagine that the system builders have a highly automated system for
creating the official kernel images, so I would assume that there are
environment variables or lock files (or something) that could be
tested for to determine if the hook script is running within a "build
run" or not (I think that's the issue, right?)...

Thanks for all your hard work!  You help make Debian better!

- Tor






More information about the Pkg-grub-devel mailing list