Mailinglist Archive: yast-devel (46 mails)
| < Previous | Next > |
[yast-devel] Re: [yast-commit] r64596 - NFSv4 in autoyast
- From: Martin Vidner <mvidner@xxxxxxx>
- Date: Fri, 1 Jul 2011 19:08:47 +0200
- Message-id: <20110701170847.GB17024@trikolka.suse.cz>
On Mon, Jun 27, 2011 at 10:45:57AM -0000, jreidinger@xxxxxxxxxxxxxxxxx wrote:
That bug was on myself and you helped me out, thanks, but I could
not resist checking the gift horse's teeth...
It is quite not obvious what nil means here.
It is even less obvious how the entire patch changes the
interpretation of the nfs part of the autoyast profile.
We should also update
http://svn.opensuse.org/svn/yast/trunk/autoinstallation/doc/NFSSection.xml
http://svn.opensuse.org/svn/yast/trunk/autoinstallation/doc/examples/example.nfs-new.xml
(which makes me notice that we broke profile compatibility for
SLES12 there, ugh)
Martin Vidner, YaST developer
http://en.opensuse.org/User:Mvidner
Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
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)
That bug was on myself and you helped me out, thanks, but I could
not resist checking the gift horse's teeth...
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;
It is quite not obvious what nil means here.
It is even less obvious how the entire patch changes the
interpretation of the nfs part of the autoyast profile.
We should also update
http://svn.opensuse.org/svn/yast/trunk/autoinstallation/doc/NFSSection.xml
http://svn.opensuse.org/svn/yast/trunk/autoinstallation/doc/examples/example.nfs-new.xml
(which makes me notice that we broke profile compatibility for
SLES12 there, ugh)
--
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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
Martin Vidner, YaST developer
http://en.opensuse.org/User:Mvidner
Kuracke oddeleni v restauraci je jako fekalni oddeleni v bazenu
| < Previous | Next > |