[yast-commit] r41105 - in /trunk/storage: agents-scr/Makefile.am agents-scr/cfg_storage.scr data/sysconfig.storage disk/src/disk.ycp package/yast2-storage.changes
![](https://seccdn.libravatar.org/avatar/0cbed2c4f9cfdb209853a4743dd5705c.jpg?s=120&d=mm&r=g)
Author: fehr Date: Wed Sep 26 12:46:29 2007 New Revision: 41105 URL: http://svn.opensuse.org/viewcvs/yast?rev=41105&view=rev Log: make warning at start of yast2 disk suppressible Added: trunk/storage/agents-scr/cfg_storage.scr Modified: trunk/storage/agents-scr/Makefile.am trunk/storage/data/sysconfig.storage trunk/storage/disk/src/disk.ycp trunk/storage/package/yast2-storage.changes Modified: trunk/storage/agents-scr/Makefile.am URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/agents-scr/Makefile.am?re... ============================================================================== --- trunk/storage/agents-scr/Makefile.am (original) +++ trunk/storage/agents-scr/Makefile.am Wed Sep 26 12:46:29 2007 @@ -9,6 +9,7 @@ proc_partitions.scr \ dasddev.scr \ etc_mtab.scr \ + cfg_storage.scr \ run_swapon_s.scr EXTRA_DIST = $(scrconf_DATA) Added: trunk/storage/agents-scr/cfg_storage.scr URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/agents-scr/cfg_storage.sc... ============================================================================== --- trunk/storage/agents-scr/cfg_storage.scr (added) +++ trunk/storage/agents-scr/cfg_storage.scr Wed Sep 26 12:46:29 2007 @@ -0,0 +1,21 @@ +/** + * File: + * cfg_storage.scr + * Summary: + * SCR Agent for reading/writing /etc/sysconfig/storage + * using the rc-agent + * Access: + * read/write + * Authors: + * Thomas Fehr <fehr@suse.cz> + * + * $Id: cfg_sound.scr 13018 2003-12-11 12:52:53Z jhumpol $ + * + * Read/Sets the values defined in <tt>/etc/sysconfig/storage</tt> + * in an easy manner. + */ +.sysconfig.storage + +`ag_ini( + `SysConfigFile("/etc/sysconfig/storage") +) Modified: trunk/storage/data/sysconfig.storage URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/data/sysconfig.storage?re... ============================================================================== --- trunk/storage/data/sysconfig.storage (original) +++ trunk/storage/data/sysconfig.storage Wed Sep 26 12:46:29 2007 @@ -11,3 +11,7 @@ ## Type: string(id,path,device,uuid,label) # List of possible default mount-by methods DEVICE_NAMES="id" + +## Type: integer(0:1) +# Show warning at start of yast2 disk +WARN_EXPERT="1" Modified: trunk/storage/disk/src/disk.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/disk/src/disk.ycp?rev=411... ============================================================================== --- trunk/storage/disk/src/disk.ycp (original) +++ trunk/storage/disk/src/disk.ycp Wed Sep 26 12:46:29 2007 @@ -27,6 +27,7 @@ import "Popup"; import "Wizard"; + import "Misc"; string msg=_("Only use this program if you are familiar with partitioning hard disks. @@ -54,7 +55,11 @@ ret = `back; // popup headline - if (Popup::YesNoHeadline(_("Warning"),msg)==true) { + integer warn = tointeger(Misc::SysconfigRead( .sysconfig.storage.WARN_EXPERT, "1" )); + y2milestone( "warn:%1", warn ); + if( warn==nil ) + warn = 1; + if (warn==0||Popup::YesNoHeadline(_("Warning"),msg)==true) { y2milestone ("--- Calling disk_worker %1 ---", WFM::Args()); ret = WFM::call("disk_worker", WFM::Args()); y2milestone ("--- Returned: %1 ---", ret); Modified: trunk/storage/package/yast2-storage.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/package/yast2-storage.cha... ============================================================================== --- trunk/storage/package/yast2-storage.changes (original) +++ trunk/storage/package/yast2-storage.changes Wed Sep 26 12:46:29 2007 @@ -3,6 +3,7 @@ - allow also device, uuid and label as default mount-by in /etc/sysconfig/storage +- make warning at start of yast2 disk suppressible - version 2.16.0 ------------------------------------------------------------------- -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
fehr@svn.opensuse.org