Mailinglist Archive: yast-commit (870 mails)
| < Previous | Next > |
[yast-commit] r49235 - /trunk/kdump/src/Kdump.ycp
- From: juhliarik@xxxxxxxxxxxxxxxx
- Date: Thu, 17 Jul 2008 16:24:29 -0000
- Message-id: <20080717162429.9FF8C33FE9@xxxxxxxxxxxxxxxx>
Author: juhliarik
Date: Thu Jul 17 18:24:29 2008
New Revision: 49235
URL: http://svn.opensuse.org/viewcvs/yast?rev=49235&view=rev
Log:
- added check of variable enable_kdump from control file
Modified:
trunk/kdump/src/Kdump.ycp
Modified: trunk/kdump/src/Kdump.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/kdump/src/Kdump.ycp?rev=49235&r1=49234&r2=49235&view=diff
==============================================================================
--- trunk/kdump/src/Kdump.ycp (original)
+++ trunk/kdump/src/Kdump.ycp Thu Jul 17 18:24:29 2008
@@ -49,6 +49,8 @@
import "Mode";
import "BootCommon";
import "Map";
+import "ProductControl";
+import "ProductFeatures";
/**
* Prototypes
@@ -541,11 +543,13 @@
section_position = section_position +1;
string name = tostring(section["name"]:nil);
string type = tostring(section["type"]:nil);
+
if ((name == act_boot_secion) && (type == "xen"))
{
section_pos = section_position;
y2milestone("default boot section is Xen...");
}
+
});
if (section_pos == -1)
y2milestone("default boot section is NOT Xen...");
@@ -898,8 +902,15 @@
//number of stages
integer steps = 2;
-
-
+ if (Mode::installation())
+ {
+ boolean write_kdump = ProductFeatures::GetBooleanFeature ("globals",
"enable_kdump");
+ if ((write_kdump == nil) || (!write_kdump))
+ {
+ y2milestone("Installation doesn't support kdump.");
+ return true;
+ }
+ }
// We do not set help text here, because it was set outside
Progress::New(caption, " ", steps, [
/* Progress stage 1/2 */
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
Date: Thu Jul 17 18:24:29 2008
New Revision: 49235
URL: http://svn.opensuse.org/viewcvs/yast?rev=49235&view=rev
Log:
- added check of variable enable_kdump from control file
Modified:
trunk/kdump/src/Kdump.ycp
Modified: trunk/kdump/src/Kdump.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/kdump/src/Kdump.ycp?rev=49235&r1=49234&r2=49235&view=diff
==============================================================================
--- trunk/kdump/src/Kdump.ycp (original)
+++ trunk/kdump/src/Kdump.ycp Thu Jul 17 18:24:29 2008
@@ -49,6 +49,8 @@
import "Mode";
import "BootCommon";
import "Map";
+import "ProductControl";
+import "ProductFeatures";
/**
* Prototypes
@@ -541,11 +543,13 @@
section_position = section_position +1;
string name = tostring(section["name"]:nil);
string type = tostring(section["type"]:nil);
+
if ((name == act_boot_secion) && (type == "xen"))
{
section_pos = section_position;
y2milestone("default boot section is Xen...");
}
+
});
if (section_pos == -1)
y2milestone("default boot section is NOT Xen...");
@@ -898,8 +902,15 @@
//number of stages
integer steps = 2;
-
-
+ if (Mode::installation())
+ {
+ boolean write_kdump = ProductFeatures::GetBooleanFeature ("globals",
"enable_kdump");
+ if ((write_kdump == nil) || (!write_kdump))
+ {
+ y2milestone("Installation doesn't support kdump.");
+ return true;
+ }
+ }
// We do not set help text here, because it was set outside
Progress::New(caption, " ", steps, [
/* Progress stage 1/2 */
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx
| < Previous | Next > |