From: Fabian Ebner Date: Tue, 26 Jan 2021 11:45:24 +0000 (+0100) Subject: Diskmanage: also detect BIOS boot, EFI and ZFS reserved type partitions X-Git-Url: https://git.proxmox.com/?p=pve-storage.git;a=commitdiff_plain;h=d3857eebb5d39b2223a4eeccb9dcfdb916075359 Diskmanage: also detect BIOS boot, EFI and ZFS reserved type partitions as they are relevant to most PVE setups. Signed-off-by: Fabian Ebner --- diff --git a/PVE/Diskmanage.pm b/PVE/Diskmanage.pm index 4313161..13b544c 100644 --- a/PVE/Diskmanage.pm +++ b/PVE/Diskmanage.pm @@ -612,6 +612,17 @@ sub get_disks { return 'ZFS' if $zfshash->{$devpath}; my $info = $lsblk_info->{$devpath} // {}; + + my $parttype = $info->{parttype}; + if (defined($parttype)) { + return 'BIOS boot' + if $parttype eq '21686148-6449-6e6f-744e-656564454649'; + return 'EFI' + if $parttype eq 'c12a7328-f81f-11d2-ba4b-00a0c93ec93b'; + return 'ZFS reserved' + if $parttype eq '6a945a3b-1dd2-11b2-99a6-080020736631'; + } + my $fstype = $info->{fstype}; if (defined($fstype)) { return "${fstype} (mounted)" if $mounted->{$devpath};