[PATCH] make /sbin/installkernel with kernel's "make install"

Scott James Remnant scott at ubuntu.com
Wed May 27 08:50:03 UTC 2009


Don't we basically want to move our code from the kernel package
postinst into this file - and call that from postinst - that already
deals with GRUB vs. LILO

On Wed, 2009-05-27 at 10:35 +0200, Tim Gardner wrote:

> Jesse Barnes wrote:
> > The upstream kernel has an "install" option which is handy for
> > development.  It uses /sbin/installkernel to set up the new kernel
> > (make the initrd and update GRUB).  Unfortunately, on
> > Ubuntu, /sbin/installkernel doesn't actually do everything necessary to
> > set up the new kernel (no initrd, no GRUB update).  This patch fixes
> > that for me, but may not be correct in all cases.  Any thoughts?
> > 
> > Please cc me on reply, I'm not subscribed to the kernel-team list.
> > 
> > Thanks,
> > Jesse
> > 
> > --- installkernel.orig	2009-05-26 00:16:48.000000000 -0700
> > +++ installkernel	2009-05-26 00:26:21.000000000 -0700
> > @@ -74,5 +74,8 @@
> >  #   mkboot -i ${dir}/vmlinuz-${ver}                                    #
> >  # fi                                                                   #
> >  ########################################################################
> > +
> > +update-initramfs -k $ver -c
> > +update-grub
> >   
> >  exit 0
> > 
> 
> We should probably add some smarts to accommodate lilo in a distro (or 
> debian) centric way. I noted that arch/x86/boot/install.sh already runs 
> /sbin/lilo if it exists.
> 
> Scott - is it sufficient to just check for /usr/sbin/grub before running 
> update-grub ? How does chain booting grub2 affect things ?
> 
> rtg
> -- 
> Tim Gardner tim.gardner at canonical.com
> 
-- 
Scott James Remnant
scott at ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20090527/1adc2761/attachment.sig>


More information about the kernel-team mailing list