summaryrefslogtreecommitdiffstats
path: root/root/linux/upgrade.sh
blob: 37408ec129db2c643d904df9c5ce80830b6e7395 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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