blob: 883d0d30f782458a024f71b3406b27d8c3508bbc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/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
l=0
for f in $d/linux.config.*
do
n=`cut -d. -f3 <<<$f`
[ $n -gt $l ] && l=$n
done
cp $d/linux.config.$l.* .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
|