You are not logged in.
Because of the archlinux specific kernelnaming-policy there's a problem when using grub2. The created menu looks nasty because grub-mkconfig can't find the proper kernel-version. (Bugreport: https://bugs.archlinux.org/task/25453)
Even if this is fixed we need to recreate the grubconfig always when a new kernel-version is installed.
What I want now is executing grub-mkconfig after each kernel-installation/mkinitcpio, without repackaging the kernel. Is such a hook possible?
Last edited by fsckd (2012-02-21 17:36:20)
Offline
mod note: I fixed the url to the bug report for you by moving the ')' outside of the tags.
One possible workaround, disable the linux detection script (in /etc/grub.d) and make your own script which echoes the Arch entries as you want them to be.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
Rorschach, I added a solution in the bugreport you posted. It might be ugly but it works ![]()
Offline
I don't recreate grub.cfg every time the kernel is updated. Why is this supposed to be necessary?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
I haven't looked at this too closely, but you should be able to construct a bash script using inotify-tools to watch your vmlinuz files and run your custom commands when vmlinuz changes.
Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703
/ is the root of all problems.
Offline
Because of the archlinux specific kernelnaming-policy there's a problem when using grub2. The created menu looks nasty because grub-mkconfig can't find the proper kernel-version. (Bugreport: https://bugs.archlinux.org/task/25453)
Even if this is fixed we need to recreate the grubconfig always when a new kernel-version is installed.
What I want now is executing grub-mkconfig after each kernel-installation/mkinitcpio, without repackaging the kernel. Is such a hook possible?
This is not necessary unless Versioned Kernel Installs are supported by pacman. I have added a new patch to https://www.dropbox.com/sh/jth3mchm3hob … src.tar.gz that solves the issue. No need for pacman or mkinitcpio hooks (for now).
Offline
This article was written for debian/ubuntu but should work for arch Run Command On Kernel Update. Hope it helps.
Last edited by wlane7878 (2012-06-23 17:32:19)
Offline