@G3ro, I've reverted the change, apologies for that. It indeed defeats the whole purpose.
For what it's worth, here are two unusual things about this PKGBUILD that pamac might choke on:
-
I don't bump the
pkgrel
when I make changes (which is rare - this latest change was the first in a long time) - the version does not increase until the next upstream kernel is released, this is in order to make this package match arch linux-lts kernel package versions exactly. -
The sources array is dynamically determined based on whether the kernel packages are available from your own mirror, falling back to the arch linux archive if not.
Pinned Comments
chrisjbillington commented on 2020-02-28 17:54 (UTC) (edited on 2022-04-10 02:41 (UTC) by chrisjbillington)
These packages allow you to have multiple versions of the Arch LTS kernel installed simultaneously. The intended use is to install the
linux-lts-versioned-bin
(andlinux-lts-versioned-headers-bin
if you use out-of-tree drivers) metapackage, using an AUR helper or otherwise in a way that automatically processes dependencies. This metapackage depends on the latest LTS versioned kernel package, but older kernel packages will remain on your system as orphaned packages to be removed later. You can find and remove them with theremove-orphaned-kernels
script, which will uninstall orphaned kernel packages except those corresponding to the kernel that is currently running. If you use GRUB, you will also need to ensure its config is updated after kernels are added or removed. Installing thegrub-hook
package will ensure this is done automatically.To switch from the regular Arch kernel package to these versioned packages, you can do the following (using the AUR helper
yay
for example):This is also discussed here.
See also:
linux-versioned-bin
linux-zen-versioned-bin
linux-hardened-versioned-bin