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 <s.ivanov@proxmox.com>
This commit is contained in:
Stoiko Ivanov 2021-07-07 23:09:53 +02:00 committed by Thomas Lamprecht
parent 3a982230c1
commit 8f256d2772

View File

@ -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
}