[pve-devel] [PATCH kernel-meta 2/2] pve-efiboot-tool: format: show real path in warning if needed
Aaron Lauterer
a.lauterer at proxmox.com
Tue May 19 09:59:44 CEST 2020
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.lauterer at 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
More information about the pve-devel
mailing list