[arch-general] RFC: declarative reference to installed kernel(s) and its modules and vmlinuz image

Damjan Georgievski gdamjan at gmail.com
Wed Dec 15 16:22:37 UTC 2021

Currently it's quite complicated to make the reference from an
installed kernel package(s) to it's files (the kernel image and
except by either invoking `pacman -Qlq linux | grep vmlinuz$` or some
heuristics like what mkinitcpio does.

So the proposal is that every kernel package should also include a symlink in
/var/lib/kernel/<pkgname> to the path in /usr/lib/modules/<kver>/.
for ex. currently that would be:
/var/lib/kernel/linux -> /usr/lib/modules/5.15.7-arch1-1/
/var/lib/kernel/linux-lts -> /usr/lib/modules/5.10.85-1-lts/

Benefits of this approach would be for tools like mkinitcpio, or
sbctl, which can declaratively refer to the kernel modules and the
vmlinuz image,
by just knowing the package name.


More information about the arch-general mailing list