2 KiB
Migrated to code.randogoth.com/randogoth/bluefin-icons
Auto GRUB Class Setup for Bluefin
Introduction
GRUB themes display icons according to each entry's class. On some rpm-ostree systems, including Bluefin, new boot entries are created without a class, which means no icon is shown in the menu.
This setup fixes that by adding a dedicated Bluefin icon to your active GRUB theme and installing a helper script that ensures every BootLoaderSpec (BLS) entry includes grub_class bluefin. With this in place, GRUB automatically picks up the correct icon and your Bluefin deployments appear with their own distinctive symbol in the boot menu.
(Developed and tested on bluefin-dx:latest-42.20251012.1)
Acknowledgements
This setup borrows the icon for the Bluefin GRUB theme created by Raindrac and is inspired by and meant as a replacement for a previous solution by Tomasz Drozdz.
Installation
If you don't have a GRUB theme installed, check these out. I am currently using this one. The installer expects /boot/grub2/user.cfg to contain a set theme=/boot/grub2/themes/<theme>/<file>.txt entry so it can locate the theme's icons folder.
- Run the installer from the repo root (it will sudo itself):
./install.sh
What it does:
- Reads your active theme path from
/boot/grub2/user.cfgand copiesbluefin.pnginto itsicons/directory. - Installs
bls-add-bluefin.shto/usr/local/sbin/and the rpm-ostree drop-in to/etc/systemd/system/ostree-finalize-staged.service.d/bluefin-icons.conf. - Reloads systemd and immediately applies
grub_class bluefinto existing BLS entries so icons show up right away.
- (Optional) Verify:
grep -n '^grub_class' /boot/loader/entries/ostree*.conf