From 18d75ce0c377a5c7a721103c25d4bf2f2d561a76 Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Fri, 26 Feb 2021 19:58:41 +0100 Subject: [PATCH] Add a note regarding using older kernels on Archlinux --- README.md | 3 +++ linux-tkg-config/prepare | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6b68c34..8c1dc1e 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,9 @@ Comes with a slightly modified Arch config asking for a few core personalization If you want to streamline your kernel config for lower footprint and faster compilations : https://wiki.archlinux.org/index.php/Modprobed-db You can optionally enable support for it at the beginning of the PKGBUILD file. **Make sure to read everything you need to know about it as there are big caveats making it NOT recommended for most users**. +**Note regarding kernels older than 5.9 on Archlinux:** +**Since the switch to zstd compressed initramfs by default, you will face an "invalid magic at start of compress" error by default. You can workaround the issue by editing `/etc/mkinitcpio.conf` to uncomment the `COMPRESSION="lz4"` (for example, since that's the best option after zstd) line and regenerating for all kernels with `sudo mkinitpcio -P`.** + ## Other stuff included: - Graysky's per-CPU-arch native optimizations - https://github.com/graysky2/kernel_gcc_patch - memory management and swapping tweaks diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index 90ad2eb..f276356 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -27,7 +27,7 @@ _tkg_initscript() { # to the rest of the script if [ -z "$_version" ] && [ ! -e "$_path"/versel ]; then plain "Which kernel version do you want to install?" - read -rp "`echo $' 1. 5.4 LTS\n 2. 5.7\n 3. 5.8\n 4. 5.9\n 5. 5.10\n > 6. 5.11\nchoice[1-6?]'`" _VERSEL; + read -rp "`echo $' 1. 5.4 LTS\n 2. 5.7\n 3. 5.8\n 4. 5.9\n 5. 5.10 LTS\n > 6. 5.11\nchoice[1-6?]'`" _VERSEL; case $_VERSEL in "1") echo "_basever=54" > "$_path"/versel