On Fri, May 01 2009, Alex Goebel wrote: > Hi > >>> Still broken in 12.012, had to generate initrd by hand (mkinitrd). >> >> kernel-package no longer does initrd generation. User scripts >> do. > > Oh ok I always thought the (initial) initrd is included in the deb > package, but I see it's not.
No, initrd images have always been calculated on the target machine -- this is how it knows what modules to include in the initramfs. > >> Well, that piece of code is provided by the user. Well, what do >> you have in /etc/kernel? >> find /etc/kernel -type f -ls >> Based on the answer to that, we might discover what needs to be >> changed. > > There are two files: > 335214 4 -rwxr-xr-x 1 root root 220 Feb 17 06:42 > /etc/kernel/postrm.d/initramfs-tools > 335224 4 -rwxr-xr-x 1 root root 264 Feb 17 06:42 > /etc/kernel/postinst.d/initramfs-tools Which are provided by the tool, initramfs-tools. > The postinst one contains > > #!/bin/sh > > # passing the kernel version is required > [ -z "$1" ] && exit 0 > > # kernel-package passes an extra arg; hack to not run under kernel-package > [ -z "$2" ] || exit 0 > And this version explicitly does not support kernel-package images. > # we're good - create initramfs. update runs do_bootloader > update-initramfs -c -t -k "$1" > > No idea whether that is 100% correct. Is is the current > initramfs-tools in unstable. And so, you have not got anything that tells the postinst that you want an initrd generated. If you are running unstable, update to the latest kernel-package, and read up on /usr/share/doc/kernel-package/README.gz > Interestingly, the update-grub (or so) must have worked, because after > installation of the kernel image, the new kernel appeared in menu.lst > (albeit without initrd). What you need to do is look into the example hook script in /usr/share/kernel-package/examples/etc/kernel/ and copy over what you want into /etc/kernel You also want to read the NEWS.Debian file there, espescilly if you are following Sid. manoj -- Disobedience: The silver lining to the cloud of servitude. Ambrose Bierce Manoj Srivastava <sriva...@acm.org> <http://www.golden-gryphon.com/> 1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org