diff options
| author | navewindre <boneyaard@gmail.com> | 2025-06-17 08:32:20 +0200 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2025-06-17 08:32:20 +0200 |
| commit | a59bf53000124544cb84d0b18c68fbde3ad5740d (patch) | |
| tree | 91475e4a1cef526794d29d090f2276009187e756 /slackware-bootstrap/kernel | |
| parent | 863b3703e3e03f1ca0ccdf297fb33e20eb344ec4 (diff) | |
a
Diffstat (limited to 'slackware-bootstrap/kernel')
| -rw-r--r-- | slackware-bootstrap/kernel | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/slackware-bootstrap/kernel b/slackware-bootstrap/kernel new file mode 100644 index 0000000..1a6e31b --- /dev/null +++ b/slackware-bootstrap/kernel @@ -0,0 +1,40 @@ +#!/bin/bash +basedir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) + +pushd + +mkdir $basedir/linux +cd $basedir/linux +wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.15.2.tar.xz +unxz linux* +tar -xvf linux* + +cd linux* +make clean +make mrproper + +zcat /proc/config.gz > .config +make olddefconfig + +make -j12 +make modules_install + +cp arch/x86/boot/bzImage /boot/vmlinuz-generic-6.15.2 + +dirstr=$(ls /boot | grep vmlinuz-6.15.2) +if [[ $dirstr != '' ]]; then + cp System.map /boot/System.map-6.15.2 + cp .config /boot/config-6.15.2 + + rm /boot/vmlinuz + ln -s /boot/vmlinuz-generic-6.15.2 /boot/vmlinuz + + rm /boot/System.map + ln -s /boot/System.map-6.15.2 /boot/System.map + + rm /boot/config + ln -s /boot/config-6.15.2 /boot/config +fi + +popd + |
