summaryrefslogtreecommitdiffstats
path: root/root/linux/upgrade.sh
blob: 84a5354562c76b0f03df88c07e4aa5e7e2a8dc40 (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-acpipnpio.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