From 1a0d446cbcb09c770ad9c341b8f88698bb7339ad Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 15 Nov 2016 07:55:37 +0100 Subject: fix being unable to format a newly part (mga#19172) previous test was using an unexported function as a side effect, we now correctly offer to format a unmounted partition (eg: when using "noauto" option in /etc/fstab) --- perl-install/NEWS | 4 ++++ perl-install/diskdrake/interactive.pm | 2 +- perl-install/install/NEWS | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/perl-install/NEWS b/perl-install/NEWS index 9fabec5c5..32f6e6258 100644 --- a/perl-install/NEWS +++ b/perl-install/NEWS @@ -1,3 +1,7 @@ +- diskdrake: + o fix being unable to format a newly part (mga#19172) + o offer to format unmounted parts that have a defined mount point + Version 17.59 - 8 November 2016 - any.pm: Fix support of plasma under X and wayland in running_window_manager() diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm index 5a6f853e4..0f681ec1a 100644 --- a/perl-install/diskdrake/interactive.pm +++ b/perl-install/diskdrake/interactive.pm @@ -410,7 +410,7 @@ sub part_possible_actions { N_("Options") => '!isSwap($part) && !isNonMountable && $::expert', N_("Label") => '!isNonMountable && $::expert && fs::format::canEditLabel($part)', N_("Resize") => '!isBusy && !readonly && !isSpecial || isLVM($hd) && is_LVM_resizable', - N_("Format") => '!isBusy && !cannotBeMountable && (!readonly && ($::expert || $::isStandalone) || fs::type::isRawLUKS($part))', + N_("Format") => '!isBusy && isFormatable && (!readonly && ($::expert || $::isStandalone) || fs::type::isRawLUKS($part))', N_("Mount") => '!isBusy && (hasMntpoint || isSwap) && maybeFormatted && ($::expert || $::isStandalone)', N_("Add to RAID") => '!isBusy && isRawRAID && (!isSpecial || isRAID)', N_("Add to LVM") => '!isBusy && isRawLVM', diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index 9ef802ee0..8e97e43a4 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,3 +1,7 @@ +- partitioning: + o fix being unable to format a newly part (mga#19172) + o offer to format unmounted parts that have a defined mount point + Version 17.58 - 24 October 2016 - bootloader configuration: -- cgit v1.2.1