]> git.proxmox.com Git - pve-installer.git/commit
tui: fix changing between non-LVM and LVM filesystem in bootdisk chooser
authorChristoph Heiss <c.heiss@proxmox.com>
Fri, 17 Nov 2023 12:12:18 +0000 (13:12 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 17 Nov 2023 12:18:35 +0000 (13:18 +0100)
commit89c135161270e3e5a32063ca6152983f5e74b651
treeaeae8601a51ff79a820119b53082c4703285c9ea
parent1f7d8d09708bc6b258a664019adbb125017168ee
tui: fix changing between non-LVM and LVM filesystem in bootdisk chooser

Happens due to a force-unwrap() under the false assumption that the
disk for LVM configurations always exists when switching to a LVM
filesystem.
This fails spectacularly with a panic when switching from e.g. Btrfs to
ext4 in the filesystem chooser.

Fixes: eda9fa0 ("fix #4856: tui: bootdisk: use correct defaults in advanced dialog")
Reported-by: Christian Ebner <c.ebner@proxmox.com>
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
proxmox-tui-installer/src/views/bootdisk.rs