Bootloader: Difference between revisions

imported>Samueldr
m Ugh, wikimarkup != markdown
imported>Samueldr
m Adds a one-liner to detect Legacy / UEFI
Line 2: Line 2:


== FAQ ==
== FAQ ==
=== Am I booted in Legacy or UEFI? ===
The following command will print which boot mode you are using. This can be used on the NixOS installation image to determine which steps to follow in the guide.
<syntaxhighlight lang="commands">
[ -d /sys/firmware/efi/efivars ] && echo "UEFI" || echo "Legacy"
</syntaxhighlight>


=== How do I remove older generations from the bootloader? ===
=== How do I remove older generations from the bootloader? ===