Hello community,
here is the log from the commit of package yast2-bootloader
checked in at Fri Jul 13 19:29:49 CEST 2007.
--------
--- yast2-bootloader/yast2-bootloader.changes 2007-07-11 00:28:41.000000000 +0200
+++ /mounts/work_src_done/STABLE/yast2-bootloader/yast2-bootloader.changes 2007-07-13 18:26:35.282168000 +0200
@@ -1,0 +2,10 @@
+Fri Jul 13 18:25:18 CEST 2007 - od@suse.de
+
+- converting old key "kernel" to new key "image" when converting
+ autoyast configuration to export map (#285790)
+- re-added lost y2milestone() to BootELILO.ycp
+- creating "image" section instead of "kernel" section now in
+ CreateLinuxSection()
+- 2.15.11
+
+-------------------------------------------------------------------
Old:
----
yast2-bootloader-2.15.10.tar.bz2
New:
----
yast2-bootloader-2.15.11.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-bootloader.spec ++++++
--- /var/tmp/diff_new_pack.OS1689/_old 2007-07-13 19:29:13.000000000 +0200
+++ /var/tmp/diff_new_pack.OS1689/_new 2007-07-13 19:29:13.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-bootloader (Version 2.15.10)
+# spec file for package yast2-bootloader (Version 2.15.11)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -11,12 +11,12 @@
# norootforbuild
Name: yast2-bootloader
-Version: 2.15.10
+Version: 2.15.11
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-bootloader-2.15.10.tar.bz2
+Source0: yast2-bootloader-2.15.11.tar.bz2
prefix: /usr
BuildRequires: docbook-xsl-stylesheets doxygen gcc-c++ libxslt limal-perl perl-Bootloader perl-XML-Writer perl-gettext sgml-skel swig update-alternatives update-desktop-files yast2-devel yast2-devtools yast2-installation yast2-perl-bindings yast2-storage yast2-testsuite
PreReq: /bin/sed %fillup_prereq
@@ -48,7 +48,7 @@
Olaf Dabrunz
%prep
-%setup -n yast2-bootloader-2.15.10
+%setup -n yast2-bootloader-2.15.11
%build
%{prefix}/bin/y2tool y2autoconf
@@ -93,6 +93,13 @@
/usr/share/YaST2/schema/autoyast/rnc/bootloader.rnc
%changelog
+* Fri Jul 13 2007 - od@suse.de
+- converting old key "kernel" to new key "image" when converting
+ autoyast configuration to export map (#285790)
+- re-added lost y2milestone() to BootELILO.ycp
+- creating "image" section instead of "kernel" section now in
+ CreateLinuxSection()
+- 2.15.11
* Wed Jul 11 2007 - od@suse.de
- Merge from SLES10-SP1 branch:
- let "SLES 9 style" autoyast xml files configure bootloader
++++++ yast2-bootloader-2.15.10.tar.bz2 -> yast2-bootloader-2.15.11.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-bootloader-2.15.10/src/modules/BootCommon.ycp new/yast2-bootloader-2.15.11/src/modules/BootCommon.ycp
--- old/yast2-bootloader-2.15.10/src/modules/BootCommon.ycp 2007-07-10 23:00:37.000000000 +0200
+++ new/yast2-bootloader-2.15.11/src/modules/BootCommon.ycp 2007-07-13 18:18:09.000000000 +0200
@@ -15,7 +15,7 @@
* Joachim Plack
* Olaf Dabrunz
*
- * $Id: BootCommon.ycp 39304 2007-07-10 21:00:36Z odabrunz $
+ * $Id: BootCommon.ycp 39407 2007-07-13 16:18:09Z odabrunz $
*
*/
@@ -523,7 +523,7 @@
y2milestone ("kernel_fn: %1 initrd_fn: %2", kernel_fn, initrd_fn);
ret = (map )union (ret, $[
- "kernel" : kernel_fn,
+ "image" : kernel_fn,
"initrd" : initrd_fn,
"root" : RootPartitionDevice,
"append" : (title == "failsafe")
@@ -544,11 +544,11 @@
ret["xen_append"] = "";
if (UsingXenPae()) {
ret["xen"] = "/boot/xen-pae.gz";
- ret["kernel"] = "/boot/" + Kernel::GetBinary () + "-xenpae";
+ ret["image"] = "/boot/" + Kernel::GetBinary () + "-xenpae";
ret["initrd"] = "/boot/initrd-xenpae";
} else {
ret["xen"] = "/boot/xen.gz";
- ret["kernel"] = "/boot/" + Kernel::GetBinary () + "-xen";
+ ret["image"] = "/boot/" + Kernel::GetBinary () + "-xen";
ret["initrd"] = "/boot/initrd-xen";
}
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-bootloader-2.15.10/src/modules/BootELILO.ycp new/yast2-bootloader-2.15.11/src/modules/BootELILO.ycp
--- old/yast2-bootloader-2.15.10/src/modules/BootELILO.ycp 2007-07-10 23:00:37.000000000 +0200
+++ new/yast2-bootloader-2.15.11/src/modules/BootELILO.ycp 2007-07-13 18:18:09.000000000 +0200
@@ -15,7 +15,7 @@
* Jiri Srain
* Andreas Schwab
*
- * $Id: BootELILO.ycp 39304 2007-07-10 21:00:36Z odabrunz $
+ * $Id: BootELILO.ycp 39407 2007-07-13 16:18:09Z odabrunz $
*
*/
@@ -545,6 +545,7 @@
entry2remove
);
+ y2milestone ("Running command %1", command);
map ret_map = (map)SCR::Execute (.target.bash_output, command);
y2milestone ("BootELILO: ret_map = %1", ret_map);
ret = (ret_map["exit"]:1 == 0);
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-bootloader-2.15.10/src/routines/autoinstall.ycp new/yast2-bootloader-2.15.11/src/routines/autoinstall.ycp
--- old/yast2-bootloader-2.15.10/src/routines/autoinstall.ycp 2007-07-10 23:00:38.000000000 +0200
+++ new/yast2-bootloader-2.15.11/src/routines/autoinstall.ycp 2007-07-13 18:18:10.000000000 +0200
@@ -11,11 +11,96 @@
* Authors:
* Jiri Srain
*
- * $Id: autoinstall.ycp 39304 2007-07-10 21:00:36Z odabrunz $
+ * $Id: autoinstall.ycp 39407 2007-07-13 16:18:09Z odabrunz $
*
*/
{
+// Example autoyast configuration file snippets:
+//
+// -------------------------------------------------
+// SLES9:
+//
+// <bootloader>
+// <activate config:type="boolean">true</activate>
+// chrp
+// <default>linux</default>
+// <global config:type="list">
+//
+// <key>default</key>
+// <value>linux</value>
+//
+//
+// <key>timeout</key>
+// <value config:type="integer">100</value>
+//
+//
+// [...]
+// </global>
+//
+//
+// <module>sym53c8xx</module>
+//
+//
+// <module>loop</module>
+//
+//
+// /dev/sda1
+// ppc
+// <location>boot</location>
+// true
+// /dev/sda1
+// <sections config:type="list">
+// <section config:type="list">
+//
+// <key>image</key>
+// <value>/boot/vmlinux</value>
+//
+//
+// <key>label</key>
+// <value>linux</value>
+//
+// [...]
+// -------------------------------------------------
+// openSUSE 10.3 Alpha5:
+//
+// <bootloader>
+// <global>
+// <activate>true</activate>
+// /dev/sda1
+// <default>linux</default>
+// 1
+// <timeout config:type="integer">80</timeout>
+// </global>
+//
+//
+// <module>ipr</module>
+//
+//
+// <module>pata_pdc2027x</module>
+//
+//
+// <module>dm_mod</module>
+//
+//
+// ppc
+// <sections config:type="list">
+// <section>
+// <append> xmon=on sysrq=1</append>
+// <image>/boot/vmlinux-2.6.22-rc4-git3-2-ppc64</image>
+// <initial>1</initial>
+// <initrd>/boot/initrd-2.6.22-rc4-git3-2-ppc64</initrd>
+// <kernel>/boot/vmlinux</kernel>
+// 0
+// <name>linux</name>
+// linux
+// <root>/dev/system/root2</root>
+// <type>image</type>
+// </section>
+// </sections>
+// </bootloader>
+// -------------------------------------------------
+
import "Bootloader";
import "BootCommon";
import "Initrd";
@@ -37,6 +122,15 @@
s = (map)union (
BootCommon::CreateLinuxSection (orig_name),
s);
+
+ // convert "kernel" to "image", if not already defined in the section
+ if ( haskey(s, "kernel") ) {
+ if ( ! haskey(s, "image") ) {
+ s["image"] = s["kernel"]:"";
+ }
+ s = remove (s, "kernel");
+ }
+
return s;
});
return sect;
@@ -149,7 +243,7 @@
if ( ai["loader_type"]:"" == "grub" && haskey(ai, "location") ) {
if ( ai["location"]:nil == "extended" )
exp["specific", "global", "boot_extended"] = "true";
- if ( ai["location"]:nil == "boot" )
+ else if ( ai["location"]:nil == "boot" )
exp["specific", "global", "boot_boot"] = "true";
else if ( ai["location"]:nil == "root" )
exp["specific", "global", "boot_root"] = "true";
@@ -265,6 +359,14 @@
y2milestone ("SLES9 format detected: %1", old_format);
if (old_format)
{
+ // In SLES9, there were no specific tags defined for the bootloader
+ // configuration items in the <global> and <sections> scopes. All
+ // configuration lines there were put into <key> and <value> pairs,
+ // and each of these pairs were put into <(global|section)_entry>
+ // tags (see example config snippets above).
+ // Converting key/value pairs to file contents first, then setting
+ // as file contents and re-exporting the parsed file contents.
+
list sections = ai["sections"]:[];
list<map> globals = ai["global"]:[];
sections = prepend (sections, globals);
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-bootloader-2.15.10/VERSION new/yast2-bootloader-2.15.11/VERSION
--- old/yast2-bootloader-2.15.10/VERSION 2007-07-11 00:24:53.000000000 +0200
+++ new/yast2-bootloader-2.15.11/VERSION 2007-07-13 18:25:06.000000000 +0200
@@ -1 +1 @@
-2.15.10
+2.15.11
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org