From 8f256d2772b44e81bcd4a376e0ce61845024641c Mon Sep 17 00:00:00 2001 From: Stoiko Ivanov Date: Wed, 7 Jul 2021 23:09:53 +0200 Subject: [PATCH] proxmox-boot: print current boot mode with status output 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 --- bin/proxmox-boot-tool | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/proxmox-boot-tool b/bin/proxmox-boot-tool index 079fa26..1e984d6 100755 --- a/bin/proxmox-boot-tool +++ b/bin/proxmox-boot-tool @@ -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 }