Author: kmachalkova
Date: Mon Sep 1 18:30:52 2008
New Revision: 50535
URL: http://svn.opensuse.org/viewcvs/yast?rev=50535&view=rev
Log:
Do not write /etc/resolv.conf directly, feed the
data to sysconfing and let netconfig do the job
(FaTE #303618)
Modified:
trunk/network/src/clients/save_network.ycp
Modified: trunk/network/src/clients/save_network.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/network/src/clients/save_network…
==============================================================================
--- trunk/network/src/clients/save_network.ycp (original)
+++ trunk/network/src/clients/save_network.ycp Mon Sep 1 18:30:52 2008
@@ -315,17 +315,21 @@
y2warning("No routing information in install.inf");
// create resolv.conf only for static configuration
- if (size(InstallInf["nameserver"]:"")>0){
- string text = "";
+ if (size(InstallInf["nameserver"]:"")>0)
+ {
+ //Do not write /etc/resolv.conf directly, feed the data to sysconfig instead,
+ //'netconfig' will do the job later on network startup (FaTE #303618)
+ SCR::Write(.sysconfig.network.config.NETCONFIG_DNS_STATIC_SERVERS, InstallInf["nameserver"]:"");
+ y2milestone("Writing static nameserver entry: %1", InstallInf["nameserver"]:"");
//Enter search domain data only if present
if( size(InstallInf["domain"]:"") > 0)
- text=sformat("search %1\nnameserver %2\n", InstallInf["domain"]:"", InstallInf["nameserver"]:"");
- else
- //If we don't have search domain data, skip 'search' field,
- //do not leave out 'nameserver' completely - #298001
- text = sformat("nameserver %1\n", InstallInf["nameserver"]:"");
- y2milestone("Write resolv.conf content: %1", text);
- SCR::Write(.target.string, "/etc/resolv.conf", text);
+ {
+ SCR::Write(.sysconfig.network.config.NETCONFIG_DNS_STATIC_SEARCHLIST, InstallInf["domain"]:"");
+ y2milestone("Writing static searchlist entry: %1", InstallInf["domain"]:"");
+ }
+ //We're done. It is OK not to touch NETCONFIG_DNS_POLICY now as it is set to 'auto' by default
+ //and user did not have a chance to modify it up to now
+ SCR::Write(.sysconfig.network.config, nil);
}
}
--
To unsubscribe, e-mail: yast-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-commit+help(a)opensuse.org
Author: kmachalkova
Date: Mon Sep 1 17:57:25 2008
New Revision: 50534
URL: http://svn.opensuse.org/viewcvs/yast?rev=50534&view=rev
Log:
updating help texts to reflect migration to
netconfig (FaTE #303618) + removed some old
fossil strings
Modified:
trunk/network/src/lan/help.ycp
trunk/network/src/services/dns.ycp
Modified: trunk/network/src/lan/help.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/network/src/lan/help.ycp?rev=505…
==============================================================================
--- trunk/network/src/lan/help.ycp (original)
+++ trunk/network/src/lan/help.ycp Mon Sep 1 17:57:25 2008
@@ -81,19 +81,17 @@
_("<p>Enable <b>IP Forwarding</b> if the system is a router.</p>"),
"dhcp_hostname":
-_("<p>If you are using DHCP to get an IP address, check whether you get
-a hostname via DHCP. You can see the hostname of you host using the <i>hostname</i> command. The hostname
-will be set automatically by the DHCP client.
-Changing the hostname at runtime may confuse the graphical Desktop. Therefore, disable this option if you connect to different
-networks that assign different hostnames.
-</p>
-"),
+_("<p>If you are using DHCP to get an IP address, check whether to get
+also a hostname via DHCP. The hostname will be set automatically by the DHCP client.
+However, changing the hostname at runtime may confuse the graphical desktop.
+Therefore, disable this option if you connect to different networks that assign
+different hostnames.</p> "),
"write_hostname":
-_("<p>If you are using DHCP to get an IP address, your hostname will be written
-to <tt>/etc/hosts</tt> and be resolvable as a <tt>127.0.0.2</tt> IP address.
-This is the default behavior. To disable this option, uncheck this box.
-Now your hostname will not be resolvable without an active network.
+_("<p>Your hostname will be written to <tt>/etc/hosts</tt> and will be
+resolvable as a <tt>127.0.0.2</tt> IP address. This is the default behavior.
+To disable such option, uncheck <b>Write Hostname to /etc/hosts</b> box.
+In that case your hostname will not be resolvable without an active network.
</p>
"),
@@ -111,27 +109,27 @@
The primary search domain is usually the same as the domain name of
your computer (for example, suse.de). There may be additional search domains
(such as suse.com). Separate the domains with commas or white space.</p>
-") +
- // resolver dialog help
- _("<p>If you plan to use a dial-up Internet connection and have set up your
-connection to use dynamic DNS assignment, these values will be temporarily
-disabled during the connection.</p>"),
+"),
"hostname_global":
-_("<p>Optionally enter the name server list and domain search list.</p>")
-+ _("<p>Note that the hostname is global--it applies to all
-interfaces, not just this one.</p>"),
-
-"modify_resolv_popup":
- /* Warning popup text 1/2 */
-_("<p>The resolver configuration file (/etc/resolv.conf)
-has been temporarily modified by %1. You have two options:</p>") +
-
- /* Warning popup text 2/2 */
- _("<p>Modify the current version of the file.</p>
-<p>Press <b>Accept</b> and continue editing other data. You are able to return to this dialog at a later time,
-when the above service has terminated.</p>
-"),
+_("<p>Enter the short name for this computer (e.g. <i>mymachine</i>) and the DNS domain
+(e.g. <i>example.com</i>) that it belongs to. The domain is especially important if this
+computer is a mail server. You can view the hostname of you computer using the <i>hostname</i>
+command.</p>"),
+
+"dns_config_policy" :
+_("<p>Select the way how DNS configuration (name servers, search list, the content of
+<i>/etc/resolv.conf</i> file) will be modified. Normally, it is handled by <i>netconfig</i>
+script which merges the data statically defined here with those obtained dynamically (e.g. from
+DHCP client, NetworkManager etc.). This is the default, <b>Use Default Policy</b> option and
+it is sufficient for most of the configurations.</p>") +
+
+_("<p>By choosing <b>Only Manually</b> option, <i>netconfig</i> will no longer be allowed to modify
+<i>/etc/resolv.conf</i>. You can however edit the file manually. By choosing <b>Use Custom Policy</b>
+option, you may specify a custom policy string, which consists of comma-separated list of interface
+names, including wildcards, with STATIC and STATIC_FALLBACK as predefined special values. For more
+information, see <i>netconfig</i> manual page. Note: leaving the field blank is the same as using <b>
+Only Manually</b> policy.</p>"),
"bootproto":
/* Address dialog help 1-6/8: dynamic address preferred */
Modified: trunk/network/src/services/dns.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/network/src/services/dns.ycp?rev…
==============================================================================
--- trunk/network/src/services/dns.ycp (original)
+++ trunk/network/src/services/dns.ycp Mon Sep 1 17:57:25 2008
@@ -343,9 +343,7 @@
/* textentry label */
"label": Label::HostName (),
"opt": [],
- "help":
- // help
-_("<p>Enter the name for this computer and the DNS domain that it belongs to.</p>"),
+ "help": help["hostname_global"]:"",
"valid_chars": Hostname::ValidChars,
"validate_type": `function_no_popup,
"validate_function": ValidateHostname,
@@ -355,7 +353,6 @@
"HOSTNAME_GLOBAL": $[
"widget": `empty,
// #91202
- "help": help["hostname_global"]:"",
"init": initHostnameGlobal,
"store": storeHostnameGlobal
],
@@ -364,7 +361,6 @@
/* textentry label */
"label": _("&Domain Name"),
"opt": [],
- "help": _("<p>The domain is especially important if this computer is a mail server.</p>"),
// Do nothing (the widget doesnt have notify anyway)
// In particular do not disable the host and domain name widgets,
// setting of FQDN should be possible even if DHCP overrides it.
@@ -404,7 +400,7 @@
[`custom, _("Use Custom Policy")] ],
"init" : initModifyResolvPolicy,
"handle": handleModifyResolvPolicy,
- "help" : ""
+ "help" : help["dns_config_policy"]:"",
],
"PLAIN_POLICY" : $[
"widget": `combobox,
--
To unsubscribe, e-mail: yast-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-commit+help(a)opensuse.org
Author: aschnell
Date: Mon Sep 1 17:09:58 2008
New Revision: 50533
URL: http://svn.opensuse.org/viewcvs/yast?rev=50533&view=rev
Log:
- work on messages
Modified:
trunk/storage/disk/src/disk.ycp
trunk/storage/libstorage/src/Dasd.cc
trunk/storage/libstorage/src/Disk.cc
trunk/storage/libstorage/src/Dmmultipath.cc
trunk/storage/libstorage/src/Dmraid.cc
trunk/storage/libstorage/src/LvmLv.cc
trunk/storage/libstorage/src/Partition.cc
trunk/storage/libstorage/src/Volume.cc
Modified: trunk/storage/disk/src/disk.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/disk/src/disk.ycp?rev=50…
==============================================================================
--- trunk/storage/disk/src/disk.ycp (original)
+++ trunk/storage/disk/src/disk.ycp Mon Sep 1 17:09:58 2008
@@ -22,8 +22,10 @@
import "Popup";
import "Wizard";
import "Misc";
+ import "Label";
+ // popup text
string msg = _("Only use this program if you are familiar with partitioning hard disks.
Never partition disks that may, in any way, be in use
@@ -39,9 +41,12 @@
if (size (WFM::Args()) == 0)
{
Wizard::CreateDialog();
- Wizard::SetContents (
+ Wizard::SetContents(
+ // dialog heading
_("Expert Partitioner"),
- `Label (_("Initializing...")),
+ // text show during initialization
+ `Label(_("Initializing...")),
+ // helptext
_("<p>Please wait, while volumes are being detected.</p>"),
false,
false
@@ -53,7 +58,7 @@
y2milestone( "warn:%1", warn );
if( warn==nil )
warn = 1;
- if (warn==0||Popup::YesNoHeadline(_("Warning"),msg)==true) {
+ if (warn==0||Popup::YesNoHeadline(Label::WarningMsg(),msg)==true) {
y2milestone ("--- Calling disk_worker %1 ---", WFM::Args());
any ret = WFM::call("disk_worker", WFM::Args());
y2milestone ("--- Returned: %1 ---", ret);
Modified: trunk/storage/libstorage/src/Dasd.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/Dasd.cc?r…
==============================================================================
--- trunk/storage/libstorage/src/Dasd.cc (original)
+++ trunk/storage/libstorage/src/Dasd.cc Mon Sep 1 17:09:58 2008
@@ -205,8 +205,8 @@
unsigned long dummy = 0;
if( !checkPartedValid( ppart, nm, pl, dummy ) )
{
- // popup text %1$s is replaced by disk name e.g. /dev/hda
string txt = sformat(
+ // popup text %1$s is replaced by disk name e.g. /dev/hda
_("The partitioning on disk %1$s is not readable by\n"
"the partitioning tool fdasd, which is used to change the\n"
"partition table.\n"
Modified: trunk/storage/libstorage/src/Disk.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/Disk.cc?r…
==============================================================================
--- trunk/storage/libstorage/src/Disk.cc (original)
+++ trunk/storage/libstorage/src/Disk.cc Mon Sep 1 17:09:58 2008
@@ -436,8 +436,8 @@
if (label == "unsupported")
{
- // popup text %1$s is replaced by disk name e.g. /dev/hda
string txt = sformat(
+ // popup text %1$s is replaced by disk name e.g. /dev/hda
_("The partition table type on disk %1$s cannot be handled by\n"
"this tool.\n"
"\n"
@@ -831,8 +831,8 @@
y2mil( "nm:" << nm );
if( !dmp_slave && !checkPartedValid( ppart, nm, pl, range_exceed ) )
{
- // popup text %1$s is replaced by disk name e.g. /dev/hda
string txt = sformat(
+ // popup text %1$s is replaced by disk name e.g. /dev/hda
_("The partitioning on disk %1$s is not readable by\n"
"the partitioning tool parted, which is used to change the\n"
"partition table.\n"
@@ -847,9 +847,9 @@
}
if( range_exceed>0 )
{
+ string txt = sformat(
// popup text %1$s is replaced by disk name e.g. /dev/hda
// %2$lu and %3$lu are replaced by numbers.
- string txt = sformat(
_("Your disk %1$s contains %2$lu partitions. The maximum number\n"
"of partitions that the kernel driver of the disk can handle is %3$lu.\n"
"Partitions numbered above %3$lu cannot be accessed."),
@@ -858,6 +858,7 @@
{
txt += "\n";
txt +=
+ // popup text
_("openSUSE is switching to the new IDE drivers using the libata\n"
"modules. These do only support partitions with up to 15\n"
"partitions. You have the following options with openSUSE 10.3:\n"
Modified: trunk/storage/libstorage/src/Dmmultipath.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/Dmmultipa…
==============================================================================
--- trunk/storage/libstorage/src/Dmmultipath.cc (original)
+++ trunk/storage/libstorage/src/Dmmultipath.cc Mon Sep 1 17:09:58 2008
@@ -176,7 +176,8 @@
// displayed text during action, %1$s is replaced by multipath partition e.g. pdc_dabaheedj1
// %2$s is replaced by size (e.g. 623.5 MB)
txt = sformat( _("Extending multipath partition %1$s to %2$s"), d.c_str(), sizeString().c_str() );
- txt += _(" (progress bar might not move)");
+ // text displayed during action
+ txt += ' ' + _("(progress bar might not move)");
}
else
{
Modified: trunk/storage/libstorage/src/Dmraid.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/Dmraid.cc…
==============================================================================
--- trunk/storage/libstorage/src/Dmraid.cc (original)
+++ trunk/storage/libstorage/src/Dmraid.cc Mon Sep 1 17:09:58 2008
@@ -176,7 +176,8 @@
// displayed text during action, %1$s is replaced by raid partition e.g. pdc_dabaheedj1
// %2$s is replaced by size (e.g. 623.5 MB)
txt = sformat( _("Extending raid partition %1$s to %2$s"), d.c_str(), sizeString().c_str() );
- txt += _(" (progress bar might not move)");
+ // text displayed during action
+ txt += ' ' + _("(progress bar might not move)");
}
else
{
Modified: trunk/storage/libstorage/src/LvmLv.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/LvmLv.cc?…
==============================================================================
--- trunk/storage/libstorage/src/LvmLv.cc (original)
+++ trunk/storage/libstorage/src/LvmLv.cc Mon Sep 1 17:09:58 2008
@@ -267,7 +267,8 @@
// displayed text during action, %1$s is replaced by device name e.g. /dev/system/var
// %2$s is replaced by size (e.g. 623.5 MB)
txt = sformat( _("Extending logical volume %1$s to %2$s"), dev.c_str(), sizeString().c_str() );
- txt += _(" (progress bar might not move)");
+ // text displayed during action
+ txt += ' ' + _("(progress bar might not move)");
}
else
{
Modified: trunk/storage/libstorage/src/Partition.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/Partition…
==============================================================================
--- trunk/storage/libstorage/src/Partition.cc (original)
+++ trunk/storage/libstorage/src/Partition.cc Mon Sep 1 17:09:58 2008
@@ -509,7 +509,8 @@
// displayed text during action, %1$s is replaced by device name e.g. /dev/hda1
// %2$s is replaced by size (e.g. 623.5 MB)
txt = sformat( _("Extending partition %1$s to %2$s"), d.c_str(), sizeString().c_str() );
- txt += _(" (progress bar might not move)");
+ // text displayed during action
+ txt += ' ' + _("(progress bar might not move)");
}
else
{
Modified: trunk/storage/libstorage/src/Volume.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/Volume.cc…
==============================================================================
--- trunk/storage/libstorage/src/Volume.cc (original)
+++ trunk/storage/libstorage/src/Volume.cc Mon Sep 1 17:09:58 2008
@@ -2641,7 +2641,8 @@
// displayed text during action, %1$s is replaced by device name e.g. /dev/hda1
// %2$s is replaced by size (e.g. 623.5 MB)
txt = sformat( _("Extending %1$s to %2$s"), d.c_str(), sizeString().c_str() );
- txt += _(" (progress bar might not move)");
+ // text displayed during action
+ txt += ' ' + _("(progress bar might not move)");
}
else
{
--
To unsubscribe, e-mail: yast-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: yast-commit+help(a)opensuse.org