The Memory Bank

...for memory blanks

Site Tools


get_boot_type

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
get_boot_type [2025/01/16 22:29] – created kenget_boot_type [2026/01/16 03:37] (current) – external edit 127.0.0.1
Line 1: Line 1:
-===== Get Boot Type =====+===== bash function to determine the boot type (on RHEL systems) =====
 <code> <code>
 function fn_get_boot_type() function fn_get_boot_type()
 { {
-#--- Determine the boot type (UEFI or BIOS). This is used for manifest automation +  #--- Determine the boot type (UEFI or BIOS). This is used for manifest automation 
-LOG_MSG="Checking for boot type" +  LOG_MSG="Checking for boot type" 
-fn_write_to_log +  fn_write_to_log 
-BOOT_TYPE=$([ -d /sys/firmware/efi ] && echo UEFI || echo BIOS) +  BOOT_TYPE=$([ -d /sys/firmware/efi ] && echo UEFI || echo BIOS) 
-LOG_MSG="Boot Type: ${BOOT_TYPE}" +  LOG_MSG="Boot Type: ${BOOT_TYPE}" 
-fn_write_to_log+  fn_write_to_log
 } }
 </code> </code>
get_boot_type.1737066544.txt.gz · Last modified: (external edit)