mirror of
https://git.proxmox.com/git/pve-kernel-meta
synced 2025-08-14 12:52:08 +00:00
pve-efiboot-tool: format: fix handling of disk/by-id
The format command will fail when using other paths like /dev/disk/by-id/<part> instead of /dev/sdXY directly. It cannot find the path /sys/block/<disk>/<part>/partition path. The part name in /dev/disk/by-id is a symlink to /dev/sdXY. At that point we already have the symlink resolved to the real path. It is stored in `bdev`. Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
This commit is contained in:
parent
723eacb774
commit
5d733131b6
@ -96,7 +96,7 @@ format() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
part_basename=$(basename "$part")
|
part_basename=$(basename "$bdev")
|
||||||
if [ -z "$part_basename" ]; then
|
if [ -z "$part_basename" ]; then
|
||||||
warn "E: unable to determine basename of '$part'"
|
warn "E: unable to determine basename of '$part'"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user