Hi,

we at suse have a problem with grub.cfg generation in grub2. The menu
contains our debug entries which are gzipped and put into /boot like:
/boot/vmlinux-2.6.36-rc4-16-default.gz

We are proposing two solutions:

---
 util/grub-mkconfig_lib.in |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/util/grub-mkconfig_lib.in b/util/grub-mkconfig_lib.in
index 4135997..9b6f39f 100644
--- a/util/grub-mkconfig_lib.in
+++ b/util/grub-mkconfig_lib.in
@@ -128,6 +128,7 @@ grub_file_is_not_garbage ()
   if test -f "$1" ; then
     case "$1" in
       *.dpkg-*) return 1 ;; # debian dpkg
+      */vmlinux-*.gz) return 1 ;; # suse debug pkgs
       README*)  return 1 ;; # documentation
     esac
   else
-- 
1.7.3.1


OR

---
 util/grub.d/10_linux.in |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
index ceee611..1edaf5d 100644
--- a/util/grub.d/10_linux.in
+++ b/util/grub.d/10_linux.in
@@ -103,7 +103,12 @@ EOF
 }

 list=`for i in /boot/vmlinuz-* /boot/vmlinux-* /vmlinuz-* /vmlinux-* ; do
-        if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
+        if grub_file_is_not_garbage "$i" ; then
+               case "$i" in
+                       */vmlinux-*.gz) ;;
+                       *) echo -n "$i " ;;
+               esac
+       fi
       done`
 prepare_boot_cache=

-- 
1.7.3.1

Any ideas, comments?

thanks,
-- 
js
suse labs

_______________________________________________
Bug-grub mailing list
Bug-grub@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-grub

Reply via email to