Configure console menu colors
As of DebianWheezy, there is no support for easily modifying the colors of the console menu. /etc/default/grub does not have any variables that can set the colors for this video mode.
The easiest way to modify the console menu colors is to create a new file /boot/grub/custom.cfg and put your configurations there:
The variables that control the console menu colors are the following:
color_normal - the “normal” foreground and background terminal colors
color_highlight - the “highlight” foreground and background terminal colors
menu_color_normal - the foreground and background colors to be used for non-highlighted menu entries
menu_color_highlight - the foreground and background colors to be used for the highlighted menu entry
If you configured /boot/grub/custom.cfg, there is no need to run update-grub; the file will be automatically loaded by /boot/grub/grub.conf at boot.
Configure graphical splashimage
install the grub2-splashimages package: aptitude install grub2-splashimages
- choose one of the nice images to use as the splashimage. You can look at the images with any image viewer (Ex: display)
configure/add the GRUB_BACKGROUND variable in /etc/default/grub. Ex: GRUB_BACKGROUND="/usr/share/images/grub/Lake_mapourika_NZ.tga"
make sure that GRUB_TERMINAL=console is commented out. The graphical mode will not be enabled if this is uncommented. By default it's commented, so you shouldn't worry too much.
the graphical resolution can be changed via the variable GRUB_GFXMODE
- reboot to observe the change
Configure encrypted /boot
Grub 2.02~beta2-29 supports reading an encrypted /boot partition.
Assuming you already have an encrypted system as setup by debian installer:
add GRUB_ENABLE_CRYPTODISK=y to /etc/default/grub
backup the contents of your /boot partition somewhere
create an LUKS container where your /boot partition was and unlock it
create an ext2 filesystem your LUKS container and mount it to /boot
restore the backup of your /boot partition to your new encrypted /boot
grub-install and update-grub
Configuring / choosing non-default or older kernel to boot
Set GRUB_DEFAULT in /etc/default/grub to other value than 0. A good description is in the official grub docs with samples at https://www.gnu.org/software/grub/manual/grub/grub.html#Simple-configuration
If you've changed grub configuration file /etc/default/grub, make sure to run update-grub to update its configuration.