Author: mzugec Date: Mon May 4 15:22:31 2009 New Revision: 57057 URL: http://svn.opensuse.org/viewcvs/yast?rev=57057&view=rev Log: fixed: After network autoinstall, dns and routes info are lost (bnc#498993) Modified: branches/tmp/SLE-11-SP1-Stash/network/VERSION branches/tmp/SLE-11-SP1-Stash/network/package/yast2-network.changes branches/tmp/SLE-11-SP1-Stash/network/src/clients/lan_auto.ycp Modified: branches/tmp/SLE-11-SP1-Stash/network/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/SLE-11-SP1-Stash/network/V... ============================================================================== --- branches/tmp/SLE-11-SP1-Stash/network/VERSION (original) +++ branches/tmp/SLE-11-SP1-Stash/network/VERSION Mon May 4 15:22:31 2009 @@ -1 +1 @@ -2.17.90 +2.17.91 Modified: branches/tmp/SLE-11-SP1-Stash/network/package/yast2-network.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/SLE-11-SP1-Stash/network/p... ============================================================================== --- branches/tmp/SLE-11-SP1-Stash/network/package/yast2-network.changes (original) +++ branches/tmp/SLE-11-SP1-Stash/network/package/yast2-network.changes Mon May 4 15:22:31 2009 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Mon May 4 15:15:00 CEST 2009 - mzugec@suse.cz + +- fixed: After network autoinstall, dns and routes info are lost + (bnc#498993) +- 2.17.91 + +------------------------------------------------------------------- Mon Apr 27 10:27:22 CEST 2009 - mzugec@suse.cz - improved "device renaming" functionality (bnc#447480) and Modified: branches/tmp/SLE-11-SP1-Stash/network/src/clients/lan_auto.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/SLE-11-SP1-Stash/network/s... ============================================================================== --- branches/tmp/SLE-11-SP1-Stash/network/src/clients/lan_auto.ycp (original) +++ branches/tmp/SLE-11-SP1-Stash/network/src/clients/lan_auto.ycp Mon May 4 15:22:31 2009 @@ -284,6 +284,29 @@ ret = LanAutoSequence(""); } else if(func == "Import") { + // see bnc#498993 + // in case keep_install_network is set to true (in AY) + // and there is no dns and routing definition, + // we'll keep values from installation + if(param["keep_install_network"]:false==true) { + y2milestone("keep_install_network is enabled"); + if(param["dns"]:$[]==$[] && param["routing"]:$[]==$[]){ + y2milestone("DNS and routing are not defined in AY, will keep settings from installation"); + // read settings from installation + Lan::Read(`cache); + // export settings into AY map + map from_system=Lan::Export(); + map dns=from_system["dns"]:$[]; + map routing=from_system["routing"]:$[]; + // merge with param + param["dns"]=dns; + param["routing"]=routing; + y2milestone("", dns); + y2milestone("", routing); + } else{ + y2milestone("DNS and routing defined in AY profile, will use it"); + } + } map new = FromAY(param); Lan::Import(new); ret = true; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org