[yast-commit] r64596 - in /branches/SuSE-Code-11-SP2-Branch/nfs-client/src: Nfs.ycp ui.ycp
Author: jreidinger Date: Mon Jun 27 12:45:54 2011 New Revision: 64596 URL: http://svn.opensuse.org/viewcvs/yast?rev=64596&view=rev Log: fix enablement of NFSv4 in autoyast (bnc#684859) Modified: branches/SuSE-Code-11-SP2-Branch/nfs-client/src/Nfs.ycp branches/SuSE-Code-11-SP2-Branch/nfs-client/src/ui.ycp Modified: branches/SuSE-Code-11-SP2-Branch/nfs-client/src/Nfs.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/nfs-client/src/Nfs.ycp?rev=64596&r1=64595&r2=64596&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/nfs-client/src/Nfs.ycp (original) +++ branches/SuSE-Code-11-SP2-Branch/nfs-client/src/Nfs.ycp Mon Jun 27 12:45:54 2011 @@ -72,7 +72,7 @@ */ global list<map> non_nfs_entries = []; - global boolean nfs4_enabled = false; + global boolean nfs4_enabled = nil; global string idmapd_domain = ""; @@ -124,6 +124,11 @@ if ( !haskey(s, "vfstype") ) { s["vfstype"] = "nfs"; + } else { + if (s["vfstype"]:"nfs" == "nfs4") + { + nfs4_enabled = true; + } } return s; @@ -357,16 +362,15 @@ Service::Enable("nfsboot"); } - if(nfs4_enabled) + if(nfs4_enabled == true) { SCR::Write(.sysconfig.nfs.NFS4_SUPPORT,"yes"); SCR::Write(.etc.idmapd_conf, ["Domain", idmapd_domain] ); } - else + else if (nfs4_enabled == false) { SCR::Write(.sysconfig.nfs.NFS4_SUPPORT,"no"); } - boolean progress_orig = Progress::set (false); SuSEFirewall::WriteOnly (); Progress::set (progress_orig); @@ -518,7 +522,7 @@ { if (Service::Start( portmapper ) == false) { - y2warning( sformat("%1 cannot be started", portmapper) ); + y2warning("%1 cannot be started", portmapper); return nil; } } Modified: branches/SuSE-Code-11-SP2-Branch/nfs-client/src/ui.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/nfs-client/src/ui.ycp?rev=64596&r1=64595&r2=64596&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/nfs-client/src/ui.ycp (original) +++ branches/SuSE-Code-11-SP2-Branch/nfs-client/src/ui.ycp Mon Jun 27 12:45:54 2011 @@ -570,8 +570,8 @@ void InitSettings( ) { CWMFirewallInterfaces::OpenFirewallInit (fw_cwm_widget, ""); - UI::ChangeWidget(`id(`enable_nfs4), `Value, Nfs::nfs4_enabled); - UI::ChangeWidget( `id(`nfs4_domain), `Enabled, Nfs::nfs4_enabled); + UI::ChangeWidget(`id(`enable_nfs4), `Value, Nfs::nfs4_enabled != false); + UI::ChangeWidget( `id(`nfs4_domain), `Enabled, Nfs::nfs4_enabled != false); UI::ChangeWidget(`id(`nfs4_domain), `Value, Nfs::idmapd_domain); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
jreidinger@svn2.opensuse.org