JWK - Jackall's IT Wiki

Sécurité, Système, Réseau

User Tools

Site Tools


Upgrade Gentoo Kernel on OVH server

<note> I use a hardened kernel</note>

Donwloading sources

 emerge -uDvN hardened-sources

Make sure linux directory point to you current kernel

Cain src # ls -l
total 16
lrwxrwxrwx  1 root root   23 23 avril 19:51 linux -> linux-3.5.4-hardened-r1

Cain src # uname -r


Copy the .config file from your current kernel to the new kernel directory

cp linux/.config linux-3.8.3-hardened/

Edit configuration if needed

cd linux-3.8.3-hardened
make menuconfig

Compile the sources :

make && make modules_install

Kernel installation

cp arch/x86_64/boot/bzImage /boot/bzImage-3.8.3-hardened-r1-jackall
cp System.map /boot/System.map-3.8.3-hardened-hardened-r1-jackall

Update /usr/src/linux link to the new source directory with eselect

eselect kernel list 
eselect kernel set XX

Configure Grub

vim /boot/grub/menu.lst or grub.cfg

title linux gentoo_hardened
kernel /boot/bzImage-3.8.3-hardened-r1-jackall root=/dev/sda1  ro
root (hd0,0)



en/ovh_gentoo_kernel_update.txt · Last modified: 2018/02/18 16:01 (external edit)