]> git.proxmox.com Git - pve-kernel-meta.git/commit
pve-efiboot-tool: format: fix handling of disk/by-id
authorAaron Lauterer <a.lauterer@proxmox.com>
Tue, 19 May 2020 07:59:43 +0000 (09:59 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 2 Jun 2020 10:29:54 +0000 (12:29 +0200)
commit5d733131b6431dcfec4e606652cb525b8ef2a5ce
tree987d6c9daba77bd90a757358f3d4207436b1e316
parent723eacb7741ef7dff5ec4d49b4c4924abc90c926
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>
bin/pve-efiboot-tool