Author: juhliarik
Date: Wed Apr 15 11:33:11 2009
New Revision: 56783
URL: http://svn.opensuse.org/viewcvs/yast?rev=56783&view=rev
Log:
- added back setKernelParam
- new version
Modified:
trunk/bootloader/VERSION
trunk/bootloader/package/yast2-bootloader.changes
trunk/bootloader/src/modules/Bootloader.ycp
Modified: trunk/bootloader/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/trunk/bootloader/VERSION?rev=56783&r1=56782&r2=56783&view=diff
==============================================================================
--- trunk/bootloader/VERSION (original)
+++ trunk/bootloader/VERSION Wed Apr 15 11:33:11 2009
@@ -1 +1 @@
-2.18.5
+2.18.6
Modified: trunk/bootloader/package/yast2-bootloader.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/bootloader/package/yast2-bootloader.changes?rev=56783&r1=56782&r2=56783&view=diff
==============================================================================
--- trunk/bootloader/package/yast2-bootloader.changes (original)
+++ trunk/bootloader/package/yast2-bootloader.changes Wed Apr 15 11:33:11 2009
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Wed Apr 15 11:31:40 CEST 2009 - juhliarik@suse.cz
+
+- added back function setKernelParam (bnc#495048)
+- 2.18.6
+
+-------------------------------------------------------------------
Tue Apr 14 13:25:52 CEST 2009 - juhliarik@suse.cz
- updated timeout for ppc and elilo both to seconds
Modified: trunk/bootloader/src/modules/Bootloader.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/bootloader/src/modules/Bootloader.ycp?rev=56783&r1=56782&r2=56783&view=diff
==============================================================================
--- trunk/bootloader/src/modules/Bootloader.ycp (original)
+++ trunk/bootloader/src/modules/Bootloader.ycp Wed Apr 15 11:33:11 2009
@@ -54,6 +54,7 @@
global define void ReadOrProposeIfNeeded ();
global define string getDefaultSection ();
global define string getKernelParam (string section, string key);
+ global define boolean setKernelParam (string section, string key, string value);
global define string getLoaderType ();
global define string getProposedDefaultSection ();
global define boolean UpdateGfxMenu ();
@@ -1133,6 +1134,80 @@
}
}
+
+
+/**
+ * set kernel parameter to menu.lst
+ * @param section string section title, use DEFAULT for default section
+ * @param key string parameter key
+ * @param value string value, "false" to remove key,
+ * "true" to add key without value
+ * @return boolean true on success
+ */
+ global define boolean setKernelParam
+ (string section, string key, string value)
+ {
+ if ((! Mode::config ()) && key == "vga" && (
+ Arch::s390 () || Arch::ppc ()
+ ))
+ {
+ y2warning ("Kernel of this architecture does not support the vga parameter");
+ return true;
+ }
+
+ ReadOrProposeIfNeeded ();
+
+ if (section == "DEFAULT")
+ section = getDefaultSection ();
+ else if (section == "LINUX_DEFAULT")
+ section = getProposedDefaultSection ();
+ if (section == nil)
+ return false;
+ integer sectnum = -1;
+ integer index = -1;
+ foreach (map