You are not logged in.

#1 2021-01-17 10:20:59

daneel971
Member
Registered: 2008-03-28
Posts: 185

[SOLVED] grub2 consider PNG files as linux kernel images

In my /boot/ directory there are a couple of png files that I use as kernel icons for refind: vmlinuz-linux.png and vmlinuz-linux-lts.png.
Sometimes I use grub instead of refind and I noticed that grub-mkconfig takes these PNGs as kernels and creates for them entries in the grub menu.
I was wondering if there is a way to avoid this, to tell grub "do not take into considerations PNG files".

Last edited by daneel971 (2021-01-17 12:37:29)

Offline

#2 2021-01-17 10:52:17

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 5,716
Website

Re: [SOLVED] grub2 consider PNG files as linux kernel images

Looks like this is caused by lines 169 & 174 /etc/grub.d/10_linux, only line 169 applies to Arch.

You could change that line to exclude "vmlinuz-*" file names which also contain "png":

   for i in /boot/vmlinuz-*[!png] /vmlinuz-*[!png] /boot/kernel-* ; do

Probably best to create a patch for this and apply it to a custom version of the grub package.

Offline

#3 2021-01-17 12:25:39

daneel971
Member
Registered: 2008-03-28
Posts: 185

Re: [SOLVED] grub2 consider PNG files as linux kernel images

thanks for the suggestion, I'll try as soon as possible

Offline

#4 2021-01-17 12:29:36

eschwartz
Trusted User/Bug Wrangler
Registered: 2014-08-08
Posts: 3,924

Re: [SOLVED] grub2 consider PNG files as linux kernel images


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB