From 75bf2911df43c44813f7e6e40106adeef972a0f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Basto?= Date: Sat, 7 Jan 2023 04:21:37 +0000 Subject: [PATCH] add Discovering the firmware type , dopied from https://fedoraproject.org/wiki/GRUB_2#Discovering_the_firmware_type --- .../Working_with_the_GRUB_2_Boot_Loader.adoc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/system-administrators-guide/pages/kernel-module-driver-configuration/Working_with_the_GRUB_2_Boot_Loader.adoc b/modules/system-administrators-guide/pages/kernel-module-driver-configuration/Working_with_the_GRUB_2_Boot_Loader.adoc index 2464357..e437157 100644 --- a/modules/system-administrators-guide/pages/kernel-module-driver-configuration/Working_with_the_GRUB_2_Boot_Loader.adoc +++ b/modules/system-administrators-guide/pages/kernel-module-driver-configuration/Working_with_the_GRUB_2_Boot_Loader.adoc @@ -1,4 +1,3 @@ - :experimental: include::{partialsdir}/entities.adoc[] @@ -532,6 +531,15 @@ Reinstalling GRUB 2 is a convenient way to fix certain problems usually caused b * Adding the boot information to another drive. +[[Discovering the firmware type]] +=== Discovering the firmware type === + +To discover what firmware your machine uses, run the following command: + +# [ -d /sys/firmware/efi ] && echo UEFI || echo BIOS + +The output returns only UEFI or BIOS, depending on the firmware your machine runs. + [[sec-grub2-reinstall_on_BIOS-Based_Machines]] === Reinstalling GRUB 2 on BIOS-Based Machines