Add a note regarding using older kernels on Archlinux

This commit is contained in:
Tk-Glitch 2021-02-26 19:58:41 +01:00
parent f3ef2edd61
commit 18d75ce0c3
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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