From 6d52cca4b311a5ad7eb9d45ab567d3948a7905d2 Mon Sep 17 00:00:00 2001 From: Michael Wu Date: Thu, 11 May 2023 19:27:45 -0500 Subject: [PATCH] Add discovering the firmware type for grub2 --- .../_partials/proc_discovering-the-firmware-type.adoc | 11 +++++++++++ modules/ROOT/pages/bootloading-with-grub2.adoc | 2 ++ modules/ROOT/pages/installing-grub2.adoc | 2 ++ 3 files changed, 15 insertions(+) create mode 100644 modules/ROOT/pages/_partials/proc_discovering-the-firmware-type.adoc diff --git a/modules/ROOT/pages/_partials/proc_discovering-the-firmware-type.adoc b/modules/ROOT/pages/_partials/proc_discovering-the-firmware-type.adoc new file mode 100644 index 0000000..ab8277c --- /dev/null +++ b/modules/ROOT/pages/_partials/proc_discovering-the-firmware-type.adoc @@ -0,0 +1,11 @@ +[[discovering-the-firmware-type]] += Discovering the firmware type + +To discover what firmware your machine uses, run the following command: + +[source,bash] +---- +$ [ -d /sys/firmware/efi ] && echo UEFI || echo BIOS +---- + +The output returns only UEFI or BIOS, depending on the firmware your machine runs. diff --git a/modules/ROOT/pages/bootloading-with-grub2.adoc b/modules/ROOT/pages/bootloading-with-grub2.adoc index 30c0830..6658f57 100644 --- a/modules/ROOT/pages/bootloading-with-grub2.adoc +++ b/modules/ROOT/pages/bootloading-with-grub2.adoc @@ -11,6 +11,8 @@ include::{partialsdir}/unreviewed-message.adoc[] Since Fedora 16, *GRUB2* has been the default bootloader on x86 BIOS systems. For upgrades of BIOS systems, the default is also to install *GRUB2*, but you can opt to skip bootloader configuration entirely. +include::{partialsdir}/proc_discovering-the-firmware-type.adoc[leveloffset=+1] + include::{partialsdir}/proc_installing-grub2-on-bios-system.adoc[leveloffset=+1] include::{partialsdir}/proc_installing-grub2-on-efi-system.adoc[leveloffset=+1] diff --git a/modules/ROOT/pages/installing-grub2.adoc b/modules/ROOT/pages/installing-grub2.adoc index b669beb..67219ce 100644 --- a/modules/ROOT/pages/installing-grub2.adoc +++ b/modules/ROOT/pages/installing-grub2.adoc @@ -26,6 +26,8 @@ Since Fedora 16, *GRUB2* has been the default bootloader on x86 BIOS systems. For upgrades of BIOS systems, the default is also to install *GRUB2*, but you can opt to skip bootloader configuration entirely. +include::{partialsdir}/proc_discovering-the-firmware-type.adoc[leveloffset=+1] + include::{partialsdir}/proc_installing-grub2-on-bios-system.adoc[leveloffset=+1] include::{partialsdir}/proc_installing-grub2-on-efi-system.adoc[leveloffset=+1]