Should i fix anything after running grub-customizer?

I saw earlier warnings against using grub-customizer too late and ran the program. Apparently it’s not compatible with modern Fedora which uses BLS instead to populate the boot menu.

I didn’t change or save anything, but i noticed that on first start the program was already issuing a grub2-mkconfig in the console, which seemed worrying.

After closing the program and rebooting to check, i found that some (EFI) boot options had been changed such as the boot order and the fast boot option. So apparently the program had made some unwanted changes to the system.

I was wondering if i need to repair anything to get my installation back to the original state? Or can i assume that the next time a kernel updates comes along the system will automatically run the correct commands and generate a proper boot setup again?

1 Like

Added bls, grub, uefi

Hi and welcome to :fedora: !

Lets see if someone can help

1 Like

Yes, unfortunately there are a fair number of ‘credible’ articles going around that tell people how simple and effective the program is, and since it’s natively available in Fedora it’s easy to assume that running the thing once to see how it looks isn’t a big risk.

Once it started to issue grub commands right on the first launch i knew it was a poorly written program and i needed to bail, but unfortunately it had already made some changes to the system by that time.

Hopefully grid-customizer will be pulled from the repositories soon.

There are safer ways to change boot settings.

I was mainly looking for a simple way to lower the resolution or increase the font size of the grub menu, since it’s tiny on my 4k laptop screen. If you have other (safe) suggestions for that please do let me know.

1 Like

Thanks Joe, my main worry is that those kinds of threads often come with a lot of warnings about editing the right/wrong system files, issuing the right commands and inadvertently breaking boot (which someone in that thread appears to do while testing).

So it doesn’t fall in the category of simple/safe solutions for me yet… :wink:

1 Like

You can check if it damaged anything

sudo rpm -qf /etc/grub.d/*
sudo rpm -V grub2-tools

grub-customizer works by renaming some of the entries in /etc/grub.d and also add extra files there.

1 Like

Thanks Villy! All looks well after issuing those commands, the config files seem to be intact.

I think the only changes that grub-customizer managed to make to the system were environment parameters such as the default boot entry and the fastboot option. The actual kernel entries were left unscathed, which seems the most important.

What is the “fastboot option” option?

1 Like

The fastboot option skips the graphical boot splash screen, so the display of the manufacturer logo and the OS logo and spinner. It just shows a black screen instead without a timeout, which is kind of tricky if it happens inadvertently because your first reaction is that your machine is broken / doesn’t boot…

You could use grubby to modify an older kernel that you’re not using to see what works and what doesn’t.

sudo grubby --info=ALL

index=0
kernel="/boot/vmlinuz-6.9.9-200.fc40.x86_64"
args="ro rootflags=subvol=@ rd.luks.uuid=luks-5a26a62f-0a55-4b72-a775-85e89c240c97"
root="UUID=a8bbfc65-12df-4144-bf98-28469a06321f"
initrd="/boot/initramfs-6.9.9-200.fc40.x86_64.img"
title="Fedora Linux (6.9.9-200.fc40.x86_64) 40 (Forty)"
id="f4b9f95c37ac496b94dc82a600296c5c-6.9.9-200.fc40.x86_64"
index=1
kernel="/boot/vmlinuz-6.9.8-200.fc40.x86_64"
args="ro rootflags=subvol=@ rd.luks.uuid=luks-5a26a62f-0a55-4b72-a775-85e89c240c97"
root="UUID=a8bbfc65-12df-4144-bf98-28469a06321f"
initrd="/boot/initramfs-6.9.8-200.fc40.x86_64.img"
title="Fedora Linux (6.9.8-200.fc40.x86_64) 40 (Forty)"
id="f4b9f95c37ac496b94dc82a600296c5c-6.9.8-200.fc40.x86_64"
index=2
kernel="/boot/vmlinuz-6.9.6-200.fc40.x86_64"
args="ro rootflags=subvol=@ rd.luks.uuid=luks-5a26a62f-0a55-4b72-a775-85e89c240c97"
root="UUID=a8bbfc65-12df-4144-bf98-28469a06321f"
initrd="/boot/initramfs-6.9.6-200.fc40.x86_64.img"
title="Fedora Linux (6.9.6-200.fc40.x86_64) 40 (Forty)"
id="f4b9f95c37ac496b94dc82a600296c5c-6.9.6-200.fc40.x86_64"
index=3
kernel="/boot/vmlinuz-0-rescue-f4b9f95c37ac496b94dc82a600296c5c"
args="ro rootflags=subvol=@ rd.luks.uuid=luks-5a26a62f-0a55-4b72-a775-85e89c240c97"
root="UUID=a8bbfc65-12df-4144-bf98-28469a06321f"
initrd="/boot/initramfs-0-rescue-f4b9f95c37ac496b94dc82a600296c5c.img"
title="Fedora Linux (0-rescue-f4b9f95c37ac496b94dc82a600296c5c) 40 (Forty Prerelease)"
id="f4b9f95c37ac496b94dc82a600296c5c-0-rescue"

sudo grubby --args=preempt=full --update-kernel="/boot/vmlinuz-6.9.6-200.fc40.x86_64"

sudo grubby --info=ALL
index=0
kernel="/boot/vmlinuz-6.9.9-200.fc40.x86_64"
args="ro rootflags=subvol=@ rd.luks.uuid=luks-5a26a62f-0a55-4b72-a775-85e89c240c97"
root="UUID=a8bbfc65-12df-4144-bf98-28469a06321f"
initrd="/boot/initramfs-6.9.9-200.fc40.x86_64.img"
title="Fedora Linux (6.9.9-200.fc40.x86_64) 40 (Forty)"
id="f4b9f95c37ac496b94dc82a600296c5c-6.9.9-200.fc40.x86_64"
index=1
kernel="/boot/vmlinuz-6.9.8-200.fc40.x86_64"
args="ro rootflags=subvol=@ rd.luks.uuid=luks-5a26a62f-0a55-4b72-a775-85e89c240c97"
root="UUID=a8bbfc65-12df-4144-bf98-28469a06321f"
initrd="/boot/initramfs-6.9.8-200.fc40.x86_64.img"
title="Fedora Linux (6.9.8-200.fc40.x86_64) 40 (Forty)"
id="f4b9f95c37ac496b94dc82a600296c5c-6.9.8-200.fc40.x86_64"
index=2
kernel="/boot/vmlinuz-6.9.6-200.fc40.x86_64"
args="ro rootflags=subvol=@ rd.luks.uuid=luks-5a26a62f-0a55-4b72-a775-85e89c240c97 preempt=full"
root="UUID=a8bbfc65-12df-4144-bf98-28469a06321f"
initrd="/boot/initramfs-6.9.6-200.fc40.x86_64.img"
title="Fedora Linux (6.9.6-200.fc40.x86_64) 40 (Forty)"
id="f4b9f95c37ac496b94dc82a600296c5c-6.9.6-200.fc40.x86_64"
index=3
kernel="/boot/vmlinuz-0-rescue-f4b9f95c37ac496b94dc82a600296c5c"
args="ro rootflags=subvol=@ rd.luks.uuid=luks-5a26a62f-0a55-4b72-a775-85e89c240c97"
root="UUID=a8bbfc65-12df-4144-bf98-28469a06321f"
initrd="/boot/initramfs-0-rescue-f4b9f95c37ac496b94dc82a600296c5c.img"
title="Fedora Linux (0-rescue-f4b9f95c37ac496b94dc82a600296c5c) 40 (Forty Prerelease)"
id="f4b9f95c37ac496b94dc82a600296c5c-0-rescue"

Then use sudo grub2-reboot X
where X is the index number of the kernel you modified.
This will do a one time boot to that kernel.

You can then go back and remove the args if needed using:
sudo grubby --remove-args="args" --update-kernel="pathtokernel"

2 Likes

To finish up this topic, this is what i ended up doing to increase the font size in the grub boot menu and the console (TTY). There are other ways that could be more streamlined, i’ll keep an eye out for those, but this gave the intended result.

For grub, i changed the display mode from text to gfx, and set a safe resolution:

# /etc/default/grub
GRUB_TERMINAL_OUTPUT="gfxterm"
GRUB_GFXMODE=1024x768

Then regenerated the config:

$ sudo grub2-mkconfig -o /boot/grub2/grub.cfg

For the TTY i installed the Terminus console font:

$ sudo dnf install terminus-fonts-console

and set the largest size in the vconsole config:

# /etc/vconsole.conf 
FONT="ter-v32n"

Both grub and the console are now well readable on my 4k laptop.

1 Like

@vekruse, do those still apply? I get an error for one command, and no (actionable) output for the other.

RokeJulianLockhart@sayw4i:~$ sudo rpm -qf /etc/grub.d/*
sudo rpm -V grub2-tools
[sudo] password for RokeJulianLockhart: 
error: file /etc/grub.d/*: No such file or directory
PS /home/RokeJulianLockhart> sudo rpm -qf /etc/grub.d/*
error: file /etc/grub.d/*: No such file or directory
PS /home/RokeJulianLockhart> $?
False
PS /home/RokeJulianLockhart> sudo rpm -V grub2-tools         
PS /home/RokeJulianLockhart> $?
True

It might be easiest to try it like this:

$ sudo -s
$ rpm -qf /etc/grub.d/*
1 Like

@litemotiv, thanks:

root@sayw4i:/home/RokeJulianLockhart# rpm -qf /etc/grub.d/*
grub2-tools-2.12-13.fc41.x86_64
file /etc/grub.d/00_tuned is not owned by any package
grub2-tools-2.12-13.fc41.x86_64
grub2-tools-2.12-13.fc41.x86_64
grub2-tools-2.12-13.fc41.x86_64
grub2-tools-2.12-13.fc41.x86_64
grub2-tools-2.12-13.fc41.x86_64
grub2-tools-2.12-13.fc41.x86_64
grub2-tools-2.12-13.fc41.x86_64
grub2-tools-2.12-13.fc41.x86_64
grub2-tools-2.12-13.fc41.x86_64
grub2-tools-2.12-13.fc41.x86_64
grub2-tools-2.12-13.fc41.x86_64
fwupd-1.9.26-1.fc41.x86_64
grub2-tools-2.12-13.fc41.x86_64
grub2-tools-2.12-13.fc41.x86_64
grub2-tools-2.12-13.fc41.x86_64

Might I ask how to know whether this tells me anything?

grub-customizer has been known to remove or overwrite files in grub.d, so this is to verify that the files exist and are owned by the correct system package grub2-tools. All looks well. :+1:

(the 00_tuned file is copied by the tuned package from /usr/share/tuned/grub2/, so that’s also fine)

1 Like