[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



On Monday 15 Jun 2009 14:42:11 maximilian attems wrote:
> explained in debian/changelog, by disabling the check
> you have busted now the ability to install linux-2.6 officialy build
> linux images.
>
> so status stays the same people that care about kernel-package,
> should come forward with a good patch.

I don't have the background on what exactly the bug is caused by. and your 
very brief explanation doesn't enlighten much.

I did run a native package and yes, it doesn't generate an initrd image there.

But we can do better in the current way we are handling. Instead of just 
silently exiting, you could atleast warn the user.

Attached is the patch.

Ritesh
-- 
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."

--- /etc/kernel/postinst.d/initramfs-tools	2009-06-16 13:58:47.838409200 +0530
+++ /tmp/initramfs-tools.mod	2009-06-16 13:58:06.152409180 +0530
@@ -6,7 +6,7 @@
 [ -z "$1" ] && exit 0
 
 # kernel-package passes an extra arg; hack to not run under kernel-package
-[ -z "$2" ] || exit 0
+[ -z "$2" ] || (echo -en "WARNING: kernel-package generated deb.\nWill not generate an initrd image\n"; exit 0)
 
 # we're good - create initramfs.  update runs do_bootloader
 update-initramfs -c -t -k "$1"

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: