All pastes #261051 Raw Edit

_davi

public text v1 · immutable
#261051 ·published 2006-11-28 21:38 UTC
rendered paste body
Compilando Kernel no slackware 11 por _davi davialbuquerque@msn.com

installpkg kernel-modules-2.6.18-i486-1.tgz
cd /etc/rc.d
rm rc.modules
ln -sf rc.modules-2.6.18 rc.modules
cd /usr/src
cp /diretorioondeesta/linux-2.6.18.3.tar.gz .
tar -xvzf linux-2.6.18.3.tar.gz
rm linux
ln -sf linux-2.6.18.3 linux
cd linux
make menuconfig
altera / salva / sai
make bzImage
make modules
make modules_install
cp arch/i386/bzImage /boot/vmlinuz-2.6.18.3
cp System.map /boot/System.map-2.6.18.3
cp .config /boot/config-2.6.18.3
cd /boot
ln -sf vmlinuz vmlinuz-old
ln -sf System.map System.map-old
ln -sf config config-old
ln -sf vmlinuz-2.6.18.3 vmlinuz
ln -sf System.map-2.6.18.3 System.map
ln -sf config-2.6.18.3 config
pico /etc/lilo.conf

Verifique se as linhas abaixo existem. (substitua o hdxx por sua particao linux)

# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hdxx
label = Linux
read-only
# Linux bootable partition config ends

e adcione esta apontando para o seu kernel antigo, em caso de kernel panic

# Linux bootable partition config begins
image = /boot/vmlinuz-old
root = /dev/hdxx
label = Linux_Antigo
read-only
# Linux bootable partition config ends

ctrl + o pra salvar / ctrl + x para sair
lilo
reboot