From 78c0b9cbd14e8b8192e5a26fa426ccba737d687d Mon Sep 17 00:00:00 2001 From: Aaron Lauterer Date: Tue, 19 May 2020 09:59:44 +0200 Subject: [PATCH] pve-efiboot-tool: format: show real path in warning if needed Show the real path of the partition in case when the basename couldn't be determined and the partition given is a symlinked one like /dev/disk/by-id// Signed-off-by: Aaron Lauterer --- bin/pve-efiboot-tool | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/pve-efiboot-tool b/bin/pve-efiboot-tool index d54b443..f57a752 100755 --- a/bin/pve-efiboot-tool +++ b/bin/pve-efiboot-tool @@ -98,7 +98,10 @@ format() { part_basename=$(basename "$bdev") if [ -z "$part_basename" ]; then - warn "E: unable to determine basename of '$part'" + if [ $part != $bdev ]; then + symlinkmsg=" -> '$bdev'" + fi + warn "E: unable to determine basename of '$part'$symlinkmsg" exit 1 fi