[PATCH] make /sbin/installkernel with kernel's "make install"
Tim Gardner
tim.gardner at canonical.com
Wed May 27 08:35:26 UTC 2009
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
More information about the kernel-team
mailing list