summaryrefslogblamecommitdiffstats
path: root/root/linux/upgrade.sh
blob: 37408ec129db2c643d904df9c5ce80830b6e7395 (plain) (tree)
1
2
3
4
5
6
7
8






                                                 
                    







                                   
#!/bin/sh
set -xe
d=`pwd`
k=`eselect kernel list | tail -n1 | cut -d\  -f6`
eselect kernel set $k
cd /usr/src/linux
patch -p1 < $d/i8042-x86ia64io.h.patch
cp $d/config .config
make
make modules
make install
make modules_install
m=`cut -d- -f2- <<<$k`
dracut $m
mv $m /boot/initramfs-$m.img
grub-mkconfig > /boot/grub/grub.cfg