diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-01-23 19:41:40 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-01-23 19:41:40 +0100 |
commit | c79a1aacbe8e9d6aacbc0122097cf7c150314dbf (patch) | |
tree | 51c28113d65f0cc6ed831b2a5a12f2817c8bc196 /root/linux/upgrade.sh | |
parent | portage command substitution patch (diff) | |
download | n-c79a1aacbe8e9d6aacbc0122097cf7c150314dbf.tar n-c79a1aacbe8e9d6aacbc0122097cf7c150314dbf.tar.gz n-c79a1aacbe8e9d6aacbc0122097cf7c150314dbf.tar.bz2 n-c79a1aacbe8e9d6aacbc0122097cf7c150314dbf.tar.lz n-c79a1aacbe8e9d6aacbc0122097cf7c150314dbf.tar.xz n-c79a1aacbe8e9d6aacbc0122097cf7c150314dbf.tar.zst n-c79a1aacbe8e9d6aacbc0122097cf7c150314dbf.zip |
Diffstat (limited to '')
-rwxr-xr-x | root/linux/upgrade.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/root/linux/upgrade.sh b/root/linux/upgrade.sh new file mode 100755 index 0000000..883d0d3 --- /dev/null +++ b/root/linux/upgrade.sh @@ -0,0 +1,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 |