Knowledge Base

Preserving for the future: Shell scripts, AoC, and more

Grub with a theme, when you have an encrypted root filesystem

I use luks encryption for my root filesystem (i.e., "/"), so this includes /usr/share/desktop-base/grub-themes/ where a Debian-like grub installation looks for its themes. Unfortunately the encrypted filesystem prevents grub from reading the pretty theme, so it just shows me a basic menu. To get access at boot time to my grub theme, I copied it to /boot.

sudo mkdir -p /boot/themes
sudo cp -pr /usr/share/desktop-base/grub-themes/cinnabar-grub /boot/themes
sudo ln -s cinnabar-grub /boot/themes/live

And then I adjusted /etc/default/grub:

GRUB_THEME=/boot/themes/live/theme.txt

And then ran update-grub (a Debian alias for grub-mkconfig -o /boot/grub/grub.cfg ).

sudo update-grub


Generating grub configuration file ...
Found theme: /boot/themes/live/theme.txt

Credits

fsmithred of Refracta

Comments