GNU GRUB

From NixOS Wiki
Revision as of 13:13, 1 January 2018 by imported>Fadenb (fix grub textmode instructions)

FAQ

How do I remove older generations from the bootloader?

First, collect garbages in your system, then rebuild. The scripts will collect leftover files.

The first command, in the example below, removes everything older than 14 days.

 $ sudo nix-collect-garbage --delete-older-than 14d 
 $ sudo nixos-rebuild boot

How do I use GRUB in text mode?

Sometimes you need to access GRUB in text mode (e.g. when using out of band management systems like HP ILO in "textcons" mode).

To use GRUB in text mode there are two settings that need to be configured depending on whether you use EFI or BIOS boot:

boot.loader.grub.gfxmodeEfi= "text";
boot.loader.grub.gfxmodeBios= "text";

Only disabling the GRUB splash screen via boot.loader.grub.splashScreen = null; results in a similar output but that is not the real text only mode.