Hello community,
here is the log from the commit of package grub2 for openSUSE:Factory
checked in at Wed Jul 13 15:58:55 CEST 2011.
--------
--- grub2/grub2.changes 2011-05-31 10:57:23.000000000 +0200
+++ /mounts/work_src_done/STABLE/grub2/grub2.changes 2011-07-12 16:04:10.000000000 +0200
@@ -1,0 +2,12 @@
+Tue Jul 12 14:03:05 UTC 2011 - aj@suse.de
+
+- Create submenu for all besides primary Linux kernels.
+- Only run preun section during package install but not during
+ upgrade.
+
+-------------------------------------------------------------------
+Tue Jul 12 11:48:08 UTC 2011 - aj@suse.de
+
+- Update README.openSUSE
+
+-------------------------------------------------------------------
calling whatdependson for head-i586
New:
----
grub2-linux-submenu.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ grub2.spec ++++++
--- /var/tmp/diff_new_pack.Lqidxp/_old 2011-07-13 15:40:50.000000000 +0200
+++ /var/tmp/diff_new_pack.Lqidxp/_new 2011-07-13 15:40:50.000000000 +0200
@@ -36,7 +36,7 @@
%define _target_platform i386-%{_vendor}-%{_target_os}%{?_gnu}
%endif
Version: 1.99
-Release: 1
+Release: 2
Summary: Bootloader with support for Linux, Multiboot and more
Group: System/Boot
License: GPLv3+
@@ -51,6 +51,7 @@
Patch0: gcc46-fixes.patch
Patch2: grub2-linux.patch
Patch3: gccwarn.patch
+Patch4: grub2-linux-submenu.patch
PreReq: perl-Bootloader
Requires: gettext-runtime
Requires(post): /sbin/install-info
@@ -81,6 +82,7 @@
%patch0 -p1
%patch2 -p0
%patch3 -p1
+%patch4 -p1
# README.openSUSE
cp %{SOURCE3} .
@@ -148,30 +150,18 @@
if [ $1 = 0 ]; then
/sbin/install-info --delete %{_infodir}/grub-dev.info %{_infodir}/dir || :
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
-fi
-
-exec >/dev/null
-if [ -e /boot/%{name}/core.img ] ; then
+ exec >/dev/null
+ if [ -e /boot/%{name}/core.img ] ; then
/sbin/update-bootloader --remove --image /boot/%{name}/core.img --name="GNU GRUB 2" || :
/sbin/update-bootloader --refresh || :
- ## XXX Ugly
+ fi
+ # Cleanup installed files
rm -f /boot/%{name}/*.mod
rm -f /boot/%{name}/*.img
rm -f /boot/%{name}/*.lst
rm -f /boot/%{name}/device.map
fi
-#%%triggerin -- kernel, kernel-PAE
-#exec >/dev/null 2>&1
-## Generate grub.cfg
-#%%{name}-mkconfig
-#
-#
-#%%triggerun -- kernel, kernel-PAE
-#exec >/dev/null 2>&1
-## Generate grub.cfg
-#%%{name}-mkconfig
-
%files -f grub.lang
%defattr(-,root,root,-)
%{_libdir}/%{name}
++++++ README.openSUSE ++++++
--- /var/tmp/diff_new_pack.Lqidxp/_old 2011-07-13 15:40:51.000000000 +0200
+++ /var/tmp/diff_new_pack.Lqidxp/_new 2011-07-13 15:40:51.000000000 +0200
@@ -46,3 +46,31 @@
If you find a bug in this package, report them to the openSUSE Bugzilla [2].
[2] http://bugzilla.novell.com/
+
+Installation
+------------
+
+There is not yet any support in openSUSE to configure and install
+grub2. To install it for the first time, run (replace /dev/sdaX with
+your boot partition or use /dev/sda for the MBR):
+
+# grub2-install --no-floppy /dev/sdaX
+# grub2-mkconfig -o /boot/grub2/grub.cfg
+
+To just update the configuration after the kernel changes, run
+# grub2-mkconfig -o /boot/grub2/grub.cfg
+
+For testing, you might want to pass --grub-setup=/bin/true to
+grub2-install - this way, grub2 is not setup in the MBR and you can
+use grub to chainload a grub2 configuration.
+
+In the grub menu.lst, just add (after changing the hd0,1 parameter):
+title GNU GRUB 2 -- openSUSE 12.1 - GNU GRUB 2
+ kernel (hd0,1)/boot/grub2/core.img
+
+Warning
+-------
+Currently, perl-Bootloader does not support grub2 as bootloader.
+
+Therefore you need to run the following after each kernel change:
+# grub2-mkconfig -o /boot/grub2/grub.cfg
++++++ gccwarn.patch ++++++
--- /var/tmp/diff_new_pack.Lqidxp/_old 2011-07-13 15:40:51.000000000 +0200
+++ /var/tmp/diff_new_pack.Lqidxp/_new 2011-07-13 15:40:51.000000000 +0200
@@ -3,8 +3,10 @@
grub-core/lib/libgcrypt/cipher/camellia.c | 3 +--
2 files changed, 2 insertions(+), 4 deletions(-)
---- a/grub-core/lib/libgcrypt-grub/cipher/camellia.c
-+++ b/grub-core/lib/libgcrypt-grub/cipher/camellia.c
+Index: grub-1.99/grub-core/lib/libgcrypt-grub/cipher/camellia.c
+===================================================================
+--- grub-1.99.orig/grub-core/lib/libgcrypt-grub/cipher/camellia.c
++++ grub-1.99/grub-core/lib/libgcrypt-grub/cipher/camellia.c
@@ -29,9 +29,8 @@ GRUB_MOD_LICENSE ("GPLv3+");
@@ -16,8 +18,10 @@
typedef unsigned char u8;
/* key constants */
---- a/grub-core/lib/libgcrypt/cipher/camellia.c
-+++ b/grub-core/lib/libgcrypt/cipher/camellia.c
+Index: grub-1.99/grub-core/lib/libgcrypt/cipher/camellia.c
+===================================================================
+--- grub-1.99.orig/grub-core/lib/libgcrypt/cipher/camellia.c
++++ grub-1.99/grub-core/lib/libgcrypt/cipher/camellia.c
@@ -26,10 +26,9 @@
#include