Re: Very simple patch for 'make zlilo'

Mathew G. Monroe (mmex@shadowland.pc.cc.cmu.edu)
Fri, 30 Jun 1995 02:35:13 -0400 (EDT)


>
> Good evening all.
>
> Below is a mind-numbingly simple patch to the makefile for when you do a
> 'make zlilo'. I almost always forget to do an rdev -R /vmlinuz 1 after
> building a new kernel and I keep on getting those irritating messages
> during boot. The patch below simply does this automatically in the makefile.
>
> I do this patch manually every time there is a new kernel ... dunno why
> I haven't posted it before :) Oh well, here it is.
>
> Regards,
> J. Kean Johnston.
>
> --- linux/arch/i386/boot/Makefile.orig Fri Jun 30 04:51:24 1995
> +++ linux/arch/i386/boot/Makefile Fri Jun 30 04:52:05 1995
> @@ -36,6 +36,7 @@
> cat zImage > $(INSTALL_PATH)/vmlinuz
> cp $(TOPDIR)/System.map $(INSTALL_PATH)/
> if [ -x /sbin/lilo ]; then /sbin/lilo; else /etc/lilo/install; fi
> + if [ -x /sbin/rdev ]; then /sbin/rdev -R $(INSTALL_PATH)/vmlinuz 1; fi
>
> install: $(CONFIGURE) zImage
> sh ./install.sh $(VERSION).$(PATCHLEVEL).$(SUBLEVEL) zImage $(TOPDIR)/System.map "$(INSTALL_PATH)"
>

This patchs is not really needed as you can do every thing in lilo you can
with rdev. Try adding adding a read-only to the entry for this image in your
lilo.conf. Of course someone may not be using lilo out there. It really does work, all of my kernels still have their flags set to 0 and I dont get errors.

Matt