summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2017-02-04 08:11:50 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2017-02-12 11:54:53 +0000
commitfbce536146d3257e12d8cea79c150b0175dfeae7 (patch)
tree9e2f3b74c9f4b3f4fae59cd49bb63ee614953873
parent4367a94baced65123f56351b7dd94defd23ad931 (diff)
downloaddrakx-fbce536146d3257e12d8cea79c150b0175dfeae7.tar
drakx-fbce536146d3257e12d8cea79c150b0175dfeae7.tar.gz
drakx-fbce536146d3257e12d8cea79c150b0175dfeae7.tar.bz2
drakx-fbce536146d3257e12d8cea79c150b0175dfeae7.tar.xz
drakx-fbce536146d3257e12d8cea79c150b0175dfeae7.zip
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.
-rw-r--r--perl-install/fs/type.pm1
1 files changed, 1 insertions, 0 deletions
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};