diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2017-02-04 08:11:50 +0000 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2017-02-25 11:39:49 +0000 |
commit | 7f8ba6effceeec774d6da321832cf618ea222daf (patch) | |
tree | e2e658f5ae6b0d386acd0e3339adc32943d7562a | |
parent | 88b671e838dbd86b1d34e137e3979fd8cff7b29c (diff) | |
download | drakx-7f8ba6effceeec774d6da321832cf618ea222daf.tar drakx-7f8ba6effceeec774d6da321832cf618ea222daf.tar.gz drakx-7f8ba6effceeec774d6da321832cf618ea222daf.tar.bz2 drakx-7f8ba6effceeec774d6da321832cf618ea222daf.tar.xz drakx-7f8ba6effceeec774d6da321832cf618ea222daf.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.pm | 1 |
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}; |