summaryrefslogtreecommitdiff
path: root/slackware-bootstrap
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-06-26 14:00:16 +0200
committeraura <nw@moneybot.cc>2026-06-26 14:00:16 +0200
commit13cd5f17559e07d631edc08ec939c0f917ffa8fe (patch)
treebdf430f93bd2a516476b595d92998be71cda0ec0 /slackware-bootstrap
parent8923e52ba33b0fe62409c81628d9de216150773f (diff)
update kernel scriptHEADmaster
Diffstat (limited to 'slackware-bootstrap')
-rwxr-xr-xslackware-bootstrap/kernel53
1 files changed, 18 insertions, 35 deletions
diff --git a/slackware-bootstrap/kernel b/slackware-bootstrap/kernel
index fe13fac..100364c 100755
--- a/slackware-bootstrap/kernel
+++ b/slackware-bootstrap/kernel
@@ -1,15 +1,19 @@
#!/bin/bash
-basedir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
+
+KVER="7.0.9"
+CVER=$(uname -r)
pushd $PWD
mkdir $basedir/linux
cd $basedir/linux
-wget https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.15.2.tar.xz
+wget https://cdn.kernel.org/pub/linux/kernel/v7.x/linux-$KVER.tar.xz
unxz linux*
tar -xvf linux*
+rm *.tar.xz
+mv linux-$KVER /usr/src/
-cd linux-6.15.2
+cd /usr/src/linux-$KVER
make clean
make mrproper
@@ -19,40 +23,19 @@ make olddefconfig
make -j12
make modules_install
-cp arch/x86/boot/bzImage /boot/vmlinuz-generic-6.15.2
-
-dirstr=$(ls /boot | grep vmlinuz-generic-6.15.2)
-if [[ $dirstr != '' ]]; then
- initrdcmd=$(/usr/share/mkinitrd/mkinitrd_command_generator.sh -k 6.15.2 | tail -1)
- $initrdcmd
- cp System.map /boot/System.map-6.15.2
- cp .config /boot/config-6.15.2.x64
-
- echo "==================== [ kernel update ] =========================="
- echo "your kernel has been updated. in order to boot, you will need"
- echo "to update your bootloader config."
- echo "if you do not use LILO, or do not boot off of your slackware disk"
- echo "simply input 'n'"
- echo "================================================================="
-
- read -p "would you like to update your bootloader? [y/n] (y): " choice
- if [[ $choice != 'n' ]]; then
- liloconfig
- fi
-
- rm /boot/vmlinuz-generic
- ln -s /boot/vmlinuz-generic-6.15.2 /boot/vmlinuz-generic
-
- rm /boot/vmlinuz
- ln -s /boot/vmlinuz-generic-6.15.2 /boot/vmlinuz
+cp arch/x86/boot/bzImage /boot/vmlinuz-$KVER
+rm /boot/vmlinuz
+rm /boot/vmlinuz-generic
+ln -s /boot/vmlinuz-$KVER /boot/vmlinuz
+ln -s /boot/vmlinuz-$KVER /boot/vmlinuz-generic
- rm /boot/System.map
- ln -s /boot/System.map-6.15.2 /boot/System.map
+cp System.map /boot/System.map-$KVER.x64
+rm /boot/System.map
+ln -s /boot/System.map-$KVER.x64 /boot/System.map
- rm /boot/config
- ln -s /boot/config-6.15.2.x64 /boot/config
-fi
+cp .config /boot/config-$KVER
+rm /boot/config
+ln -s /boot/config-$KVER /boot/config
popd
-touch ~/.kernel-done