Re: kernel-package??
On Thu, Apr 30 2009, thveillon.debian wrote:
ers are non-essential.
>
> Installing the created .deb will take care of all the linking (/initrd,
> /vmlinuz, build dir...), boot-loader update (with grub at least), initrd
> creation/update and such.
Actually, with the 12.XX branch, you get to choose what happens
when the kernel image is installed, by dropping scripts into
/etc/kernel -- by default, no action is taken
For example, to create an initramfs, I did:
--8<---------------cut here---------------start------------->8---
cp /usr/share/kernel-package/examples/etc/kernel/postinst.d/yaird \
/etc/kernel/postinst.d/
cp /usr/share/kernel-package/examples/etc/kernel/postrm.d/yaird \
/etc/kernel/postrm.d/
--8<---------------cut here---------------end--------------->8---
Or, alternately, you could do:
--8<---------------cut here---------------start------------->8---
cp /usr/share/kernel-package/examples/etc/kernel/postinst.d/initramfs \
/etc/kernel/postinst.d/
cp /usr/share/kernel-package/examples/etc/kernel/postrm.d/initramfs \
/etc/kernel/postrm.d/
--8<---------------cut here---------------end--------------->8---
To run grub, I have in /etc/kernel-img.conf:
--8<---------------cut here---------------start------------->8---
postinst_hook = update-grub
postrm_hook = update-grub
--8<---------------cut here---------------end--------------->8---
But really, you can substitute your own scripts, or decide not
to use initrds (which is a sane option if you are building your own
kernels and thus might not have any modules at all).
manoj
--
Absinthe makes the tart grow fonder.
Manoj Srivastava <srivasta@acm.org> <http://www.golden-gryphon.com/>
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C
Reply to: