]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Load fonts and modules for gfxmenu in grub-mkconfig.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 9 Apr 2010 14:56:07 +0000 (16:56 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 9 Apr 2010 14:56:07 +0000 (16:56 +0200)
Idea by: Mario Vasquez

* util/grub.d/00_header.in: Load pf2 and image modules.

ChangeLog
util/grub.d/00_header.in

index cbc8ff33148a50c78a4337c51af54ae4da5ebb7c..0b77ea6a48e0a2ee423a1f8722d4e93a33696bc1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-04-09  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       Load fonts and modules for gfxmenu in grub-mkconfig.
+       Idea by: Mario Vasquez
+
+       * util/grub.d/00_header.in: Load pf2 and image modules.
+
 2010-04-09  Vladimir Serbinenko  <phcoder@gmail.com>
 
        grub-mkconfig multiple terminal support.
index 81f7a213a08e4dde4a3fda6503ccf120df725f18..f99010d6dfcbd80e1ab0cf5adfb76d75d5a7c9c7 100644 (file)
@@ -98,6 +98,32 @@ EOF
        prepare_grub_to_access_device `${grub_probe} --target=device $GRUB_THEME` | sed -e "s/^/  /"
        cat << EOF
   insmod gfxmenu
+EOF
+       themedir="`dirname $GRUB_THEME`"
+       for x in "$themedir"/*.pf2 "$themedir"/f/*.pf2; do
+           if [ -f "$x" ]; then
+               cat << EOF
+  loadfont (\$root)`make_system_path_relative_to_its_root $x`
+EOF
+           fi
+       done
+       if [ x"`echo "$themedir"/*.jpg`" != x"$themedir/*.jpg" ]; then
+           cat << EOF
+  insmod jpeg
+EOF
+       fi
+       if [ x"`echo "$themedir"/*.png`" != x"$themedir/*.png" ]; then
+           cat << EOF
+  insmod png
+EOF
+       fi
+       if [ x"`echo "$themedir"/*.tga`" != x"$themedir/*.tga" ]; then
+           cat << EOF
+  insmod tga
+EOF
+       fi
+           
+       cat << EOF
   set theme=(\$root)`make_system_path_relative_to_its_root $GRUB_THEME`
 EOF
     fi