summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/mktarxz9
-rwxr-xr-xslackware-bootstrap/kernel53
2 files changed, 27 insertions, 35 deletions
diff --git a/bin/mktarxz b/bin/mktarxz
new file mode 100644
index 0000000..5e6e912
--- /dev/null
+++ b/bin/mktarxz
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+FPATH=$1
+if [ -z "$FPATH" ]; then
+ echo "Usage: $0 <file>"
+ exit 1
+fi
+
+exec tar cf - $FPATH | xz -9 -0 --memlimit-compress=48GiB
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