Re: A question on System.map (for the FAQ please)

Keith Owens (kaos@ocs.com.au)
Tue, 05 Oct 1999 23:43:09 +1000


On Tue, 5 Oct 1999 14:26:08 +0100 ,
"Jones D (ISaCS)" <djones2@glam.ac.uk> wrote:
>> After you've made a kernel..
>>
>> mv System.map /boot/System.map-`uname -r`
>
>Oops.. I screwed up.. This won't work, as it'll take the
>currently running kernel.. You'll have to boot the new
>kernel once before doing this..

cd /usr/src/linux
vps=`awk '/^VERSION/{printf "%s", $3}/^PATCHLEVEL/{printf ".%s", $3}/^SUBLEVEL/{printf ".%s", $3}/^EXTRAVERSION/{printf "%s", $3}FNR > 10{printf "\n"; stop}' Makefile`
if [ -e arch/i386/boot/bzImage ]
then
cp -av arch/i386/boot/bzImage /test_kernel/$vps
else
cp -av arch/i386/boot/zImage /test_kernel/$vps
fi
mkdir -p /lib/modules/$vps
cp -av .config System.map /lib/modules/$vps

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/