Mailinglist Archive: yast-commit (459 mails)

< Previous Next >
[yast-commit] r60786 - in /trunk/bootloader: package/yast2-bootloader.changes src/routines/misc.ycp
  • From: juhliarik@xxxxxxxxxxxxxxxx
  • Date: Wed, 10 Feb 2010 12:50:00 -0000
  • Message-id: <E1NfC12-0004DE-VJ@xxxxxxxxxxxxxxxx>
Author: juhliarik
Date: Wed Feb 10 13:50:00 2010
New Revision: 60786

URL: http://svn.opensuse.org/viewcvs/yast?rev=60786&view=rev
Log:
added fix for adding crashkernel to XEN kernel bnc#578545

Modified:
trunk/bootloader/package/yast2-bootloader.changes
trunk/bootloader/src/routines/misc.ycp

Modified: trunk/bootloader/package/yast2-bootloader.changes
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/bootloader/package/yast2-bootloader.changes?rev=60786&r1=60785&r2=60786&view=diff
==============================================================================
--- trunk/bootloader/package/yast2-bootloader.changes (original)
+++ trunk/bootloader/package/yast2-bootloader.changes Wed Feb 10 13:50:00 2010
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Wed Feb 10 13:49:32 CET 2010 - juhliarik@xxxxxxx
+
+- added fix for adding crashkernel option to XEN kernel
+ (bnc#578545)
+
+-------------------------------------------------------------------
Tue Feb 9 16:30:04 CET 2010 - juhliarik@xxxxxxx

- solved problem with wrtting to floppy (bnc#539774)

Modified: trunk/bootloader/src/routines/misc.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/bootloader/src/routines/misc.ycp?rev=60786&r1=60785&r2=60786&view=diff
==============================================================================
--- trunk/bootloader/src/routines/misc.ycp (original)
+++ trunk/bootloader/src/routines/misc.ycp Wed Feb 10 13:50:00 2010
@@ -1397,6 +1397,33 @@
}
return true;
}
+/** bnc #578545 - kdump misconfigures crashkernel parameter for Xen
+ * Check if default_append includes crashkernel arg
+ *
+ * @param string defaul_append
+ * @return string defaul_append without crashkernel
+ */
+
+define string deleteCrashkernelFromAppend (string append)
+{
+ y2milestone("Original append: %1",append);
+ list<string> list_append = splitstring(append, " ");
+
+ if (size(list_append)>0)
+ {
+ list_append = filter(string key, list_append,
+ {
+ if (search(key, "crashkernel") == nil)
+ return true;
+ else
+ return false;
+ });
+ }
+ string ret = mergestring(list_append, " ");
+ y2milestone("Filtered append: %1",ret);
+ return ret;
+}
+

/** FATE #302245 save kernel args etc to /etc/sysconfig/bootloader
* Function write/update info in /etc/sysconfig/bootloader
@@ -1489,7 +1516,7 @@

if (! xen_set)
{
- xen_kernel_append = default_append;
+ xen_kernel_append = deleteCrashkernelFromAppend(default_append);
xen_append = "";
xen_vga = default_vga;
}

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages