]> git.proxmox.com Git - pve-kernel-meta.git/commitdiff
proxmox-boot: print current boot mode with status output
authorStoiko Ivanov <s.ivanov@proxmox.com>
Wed, 7 Jul 2021 21:09:53 +0000 (23:09 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 8 Jul 2021 06:44:35 +0000 (08:44 +0200)
most support questions w.r.t. proxmox-boot-tool do have us
asking for `stat /sys/firmware/efi` output anyways

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
bin/proxmox-boot-tool

index 079fa266ede6ff38621ea3400f3f1506fb98fb3b..1e984d6c8c41e36f3b522f0b716bc1251470817c 100755 (executable)
@@ -381,6 +381,11 @@ status() {
                exit 2
        fi
        if [ -z "$quiet" ]; then
+               if [ -d /sys/firmware/efi ]; then
+                   echo "System currently booted with uefi"
+               else
+                   echo "System currently booted with legacy bios"
+               fi
                loop_esp_list _status_detail
        fi
 }