diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-06-29 17:23:29 +0200 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-06-30 16:29:49 +0200 |
commit | b14b860a8e92c36767b519de516128b3d7847628 (patch) | |
tree | 8e62e9f69067b798eeb1f2cd7f8709535528f72c /perl-install/fs | |
parent | 41611f474e8cf755f5b74fb98ef33ab8d830d081 (diff) | |
download | drakx-b14b860a8e92c36767b519de516128b3d7847628.tar drakx-b14b860a8e92c36767b519de516128b3d7847628.tar.gz drakx-b14b860a8e92c36767b519de516128b3d7847628.tar.bz2 drakx-b14b860a8e92c36767b519de516128b3d7847628.tar.xz drakx-b14b860a8e92c36767b519de516128b3d7847628.zip |
fix being able to create vfat on UEFI (mga#15698)
and explain the purpose of the uniq_() call
see commit 56b573476e2ea63a509ab2f8ec0683397ae7c85e
Rationale: use_pt_type() now returns 0 for common disks (eg: GPT ones)
Under GPT+UEFI, we've 2 important "FS" having vfag as the real FS:
ESP & FAT32
Diffstat (limited to 'perl-install/fs')
-rw-r--r-- | perl-install/fs/type.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/fs/type.pm b/perl-install/fs/type.pm index b8262b30e..be44bc246 100644 --- a/perl-install/fs/type.pm +++ b/perl-install/fs/type.pm @@ -163,7 +163,8 @@ sub type_names { my @l = @{$type_names{important}}; push @l, grep { $_ ne 'Encrypted' } @{$type_names{non_fs_type}}; push @l, sort @{$type_names{other}} if $expert; - if ($o_hd && !$o_hd->use_pt_type) { + # not show partition types which have no associated filesystem for LVM LV: + if ($o_hd && isLVM($o_hd)) { @l = grep { $type_name2fs_type{$_} } @l; @l = uniq_ { $type_name2fs_type{$_} } @l; (@l, @{$type_names{non_fs_type}}); |