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/<part>/
Signed-off-by: Aaron Lauterer <a.laute...@proxmox.com> --- I hope this is not a too hacky solution :) 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 -- 2.20.1 _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel