[pve-devel] [PATCH pve-kernel-meta 4/5] proxmox-boot: print current boot mode with status output
Stoiko Ivanov
s.ivanov at proxmox.com
Wed Jul 7 23:09:53 CEST 2021
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 at proxmox.com>
---
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
}
--
2.30.2
More information about the pve-devel
mailing list