Hello community,
here is the log from the commit of package yast2-kdump for openSUSE:Factory
checked in at Fri Jan 9 02:12:48 CET 2009.
--------
--- yast2-kdump/yast2-kdump.changes 2008-12-16 10:29:40.000000000 +0100
+++ /mounts/work_src_done/STABLE/yast2-kdump/yast2-kdump.changes 2009-01-08 14:53:38.000000000 +0100
@@ -1,0 +2,7 @@
+Thu Jan 8 14:45:20 CET 2009 - juhliarik@suse.cz
+
+- added fix for adding crashkernel value to kernel_params - using
+ kexec instead of reboot (bnc #441229)
+- 2.17.16
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
Old:
----
yast2-kdump-2.17.15.tar.bz2
New:
----
yast2-kdump-2.17.16.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-kdump.spec ++++++
--- /var/tmp/diff_new_pack.x29003/_old 2009-01-09 02:12:36.000000000 +0100
+++ /var/tmp/diff_new_pack.x29003/_new 2009-01-09 02:12:36.000000000 +0100
@@ -1,7 +1,7 @@
#
-# spec file for package yast2-kdump (Version 2.17.15)
+# spec file for package yast2-kdump (Version 2.17.16)
#
-# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,12 +19,12 @@
Name: yast2-kdump
-Version: 2.17.15
+Version: 2.17.16
Release: 1
License: GPL v2 only
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-kdump-2.17.15.tar.bz2
+Source0: yast2-kdump-2.17.16.tar.bz2
Prefix: /usr
Requires: yast2 yast2-storage yast2-bootloader
BuildRequires: perl-XML-Writer update-desktop-files yast2 yast2-bootloader yast2-devtools yast2-storage yast2-testsuite
@@ -43,7 +43,7 @@
Jozef Uhliarik
%prep
-%setup -n yast2-kdump-2.17.15
+%setup -n yast2-kdump-2.17.16
%build
%{prefix}/bin/y2tool y2autoconf
@@ -78,6 +78,10 @@
/usr/share/YaST2/scrconf/*.scr
%doc %{prefix}/share/doc/packages/yast2-kdump
%changelog
+* Thu Jan 08 2009 juhliarik@suse.cz
+- added fix for adding crashkernel value to kernel_params - using
+ kexec instead of reboot (bnc #441229)
+- 2.17.16
* Tue Dec 16 2008 juhliarik@suse.cz
- added fix for problem with bootloader if "/" is on NFS
(bnc #450132)
++++++ yast2-kdump-2.17.15.tar.bz2 -> yast2-kdump-2.17.16.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-kdump-2.17.15/src/Kdump.ycp new/yast2-kdump-2.17.16/src/Kdump.ycp
--- old/yast2-kdump-2.17.15/src/Kdump.ycp 2008-12-16 10:08:51.000000000 +0100
+++ new/yast2-kdump-2.17.16/src/Kdump.ycp 2009-01-08 14:43:54.000000000 +0100
@@ -53,6 +53,8 @@
import "ProductFeatures";
import "PackagesProposal";
import "FileUtils";
+import "String";
+import "Directory";
/**
* Prototypes
@@ -841,10 +843,77 @@
if (checkPassword())
Chmod(kdump_file, "600");
else
- Chmod(kdump_file, "644");
+ Chmod(kdump_file, "644");
return true;
}
+/**
+ * Add crashkernel arg to
+ *
+ *
+ *
+ */
+
+boolean addCrashkernelToKexec (string crashkernel_value)
+{
+ if ((crashkernel_value == "") && (crashkernel_value == nil))
+ {
+ y2milestone("crashkernel value empty");
+ return false;
+ }
+ // command for checking if kernel_params exist
+ string cmd = sformat("ls '%1/kernel_params' |tr -d '\n'", String::Quote (Directory::vardir));
+ y2milestone("Checking existing file kernel_params via command %1", cmd);
+
+ map out = (map)WFM::Execute(.local.bash_output, cmd);
+
+ cmd = sformat("%1/kernel_params",Directory::vardir);
+ // check output
+ if (out["stdout"]:"" != cmd)
+ {
+ y2milestone ("File kernel_params was not found, output: %1", out);
+ return false;
+ }
+
+ // command for reading kernel_params
+ cmd = sformat("cat '%1/kernel_params' |tr -d '\n'", String::Quote (Directory::vardir));
+ y2milestone("Reading kernel arguments via command %1", cmd);
+ // read data from /var/lib/YaST2/kernel_params
+ out = (map)WFM::Execute(.local.bash_output, cmd);
+ // check output
+ if (out["exit"]:nil != 0)
+ {
+ y2error ("Reading kernel arguments failed, output: %1", out);
+ return false;
+ }
+
+ string kernel_args = out["stdout"]:"";
+ // check if kernel_params contains any data
+ if (size(kernel_args) <2)
+ {
+ y2error ("%1/kernel_params is empty, kernel_params=%2 ", Directory::vardir, kernel_args);
+ return false;
+ }
+
+ // add crashkernel value to variable
+ kernel_args = kernel_args + " crashkernel=" + crashkernel_value;
+
+ // command for updating kernel_params
+ cmd = sformat("echo \"%1\" > '%2/kernel_params'",
+ kernel_args, String::Quote (Directory::vardir));
+ y2milestone("Update kernel arguments via command %1", cmd);
+ // read data from /var/lib/YaST2/kernel_params
+ out = (map)WFM::Execute(.local.bash_output, cmd);
+ // check output
+ if (out["exit"]:nil != 0)
+ {
+ y2error ("Writining kernel arguments failed, output: %1", out);
+ return false;
+ }
+
+ return true;
+
+}
/**
* Write kdump boot argument crashkernel
@@ -895,6 +964,9 @@
if (Mode::normal())
Popup::Message(_("To apply changes a reboot is necessary."));
+ if (Mode::installation())
+ addCrashkernelToKexec(crash_value);
+
Service::Enable("boot.kdump");
return result;
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-kdump-2.17.15/VERSION new/yast2-kdump-2.17.16/VERSION
--- old/yast2-kdump-2.17.15/VERSION 2008-12-16 10:21:50.000000000 +0100
+++ new/yast2-kdump-2.17.16/VERSION 2009-01-08 14:48:59.000000000 +0100
@@ -1 +1 @@
-2.17.15
+2.17.16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org