Re: My personal wish-list

Mike McLagan (mmclagan@invlogic.com)
Tue, 30 Apr 1996 15:16:40 -0400 (EDT)


You (Ulrich Windl) wrote
>
> On 29 Apr 96 at 14:50, Scott H. Perlman wrote:
>
> > Graham Mitchell wrote:
> > > On 26 Apr 96 at 16:09, Aaron Fredrick Tiensivu wrote:
> > > > o 'vmlinuz' created as a symlink pointing to 'vmlinuz_x.x.xxx' , same with
> > > > System.map. That way, no need to go probing to the file looking for version
> > > > signature.
> > >
> >
> > I already have all my kernels with version numbers.
> >
> > make zlilo is not necessary, try
> > $ make zImage && cp boot/arch/i86/zImage /vmlinux-x.x.xx
> > $ vi /etc/lilo.conf && lilo
> >
> > make zlilo will automatically install vmlinuz and manage your kernels, which
> > is great if you are building a stable kernel, and only need one backup.
> > If you are playing with x.[13579].x you probably want a bit more control over
> > which kernels you keep around.
>
> All good ideas, but I never liked the name "vmlinux"; it's
> "zImage-1.3.95" (for example) for me.
>
> BTW: HP-UX 10 has it's kernel in /stand/ together with the
> configuration file. Shouldn't Linux add "/config-1.3.95" when a
> kernel is installed? An other thing is the system map...

I use a script to do my building, so I end up with exactly what is being
discussed.

Mike was here...

/usr/src/linux/build:
-------------------------------------------------------------------------------
#! /bin/bash

cd /usr/src/linux
rm -f .version `find -name "*.orig" -print` `find -name "*.rej" -print` `find -name ".*.orig" -print` `find -name ".*.rej" -print`

VERSION=`grep VERSION Makefile | head -1 | cut -f3 -d' '`
PATCH=`grep PATCHLEVEL Makefile | head -1 | cut -f3 -d' '`
SUB=`grep SUBLEVEL Makefile | head -1 | cut -f3 -d' '`

cd /
ln -sf vmlinuz-${VERSION}.${PATCH}${SUB} vmlinuz
ln -sf zSystem-${VERSION}.${PATCH}${SUB} System.map
rm -f *-${VERSION}.${PATCH}${SUB}

cd /usr/src/linux
make zlilo modules
shutdown -r +5
-------------------------------------------------------------------------------