[yast-commit] r65300 - in /branches/SuSE-Code-11-SP2-Branch/storage: package/yast2-storage.changes storage/src/inst_target_part.ycp
Author: fehr Date: Wed Aug 10 16:25:22 2011 New Revision: 65300 URL: http://svn.opensuse.org/viewcvs/yast?rev=65300&view=rev Log: show popup if proposal of separate /home is not possible Modified: branches/SuSE-Code-11-SP2-Branch/storage/package/yast2-storage.changes branches/SuSE-Code-11-SP2-Branch/storage/storage/src/inst_target_part.ycp Modified: branches/SuSE-Code-11-SP2-Branch/storage/package/yast2-storage.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/storage/package/yast2-storage.changes?rev=65300&r1=65299&r2=65300&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/storage/package/yast2-storage.changes (original) +++ branches/SuSE-Code-11-SP2-Branch/storage/package/yast2-storage.changes Wed Aug 10 16:25:22 2011 @@ -3,6 +3,7 @@ - allow label on btrfs when format is true - do not allow to partition disks used by LVM in disk selection +- show popup if proposal of separate /home is not possible ------------------------------------------------------------------- Tue Aug 9 16:29:08 CEST 2011 - fehr@suse.de Modified: branches/SuSE-Code-11-SP2-Branch/storage/storage/src/inst_target_part.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/storage/storage/src/inst_target_part.ycp?rev=65300&r1=65299&r2=65300&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/storage/storage/src/inst_target_part.ycp (original) +++ branches/SuSE-Code-11-SP2-Branch/storage/storage/src/inst_target_part.ycp Wed Aug 10 16:25:22 2011 @@ -409,6 +409,15 @@ remove or select a larger disk."); display_error_box (reason); } + list<map> pl = Storage::GetTargetMap()[target_is,"partitions"]:[]; + y2milestone( "proposed partitions:%1", pl ); + if( StorageProposal::GetProposalHome() && + size(filter( map p, pl, ``(p["mount"]:""=="/home")))==0 ) + { + ok = false; + string reason = _("Not enough space available to propose separate /home."); + Popup::Error( reason ); + } } } } // while (true) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
fehr@svn2.opensuse.org