From fbce536146d3257e12d8cea79c150b0175dfeae7 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sat, 4 Feb 2017 08:11:50 +0000 Subject: Set fs_type to '' for BIOS boot and Empty partitions. This prevents misreporting of the partition type in diskdrake if they located on top of an old partition that contained a valid file system. --- perl-install/fs/type.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/perl-install/fs/type.pm b/perl-install/fs/type.pm index abfdb04e5..0492420e8 100644 --- a/perl-install/fs/type.pm +++ b/perl-install/fs/type.pm @@ -280,6 +280,7 @@ sub type_subpart_from_magic { } if ($p) { + $p->{fs_type} = '' if $part->{pt_type} eq 'BIOS_GRUB'; $part->{fs_type_from_magic} = $p->{fs_type}; $p->{device_LABEL} = $ids->{ID_FS_LABEL} if $ids->{ID_FS_LABEL}; $p->{device_UUID} = $ids->{ID_FS_UUID} if $ids->{ID_FS_UUID}; -- cgit v1.2.1