Load fonts and modules for gfxmenu in grub-mkconfig.
Idea by: Mario Vasquez * util/grub.d/00_header.in: Load pf2 and image modules.
This commit is contained in:
parent
f267f83a13
commit
d64795c0eb
2 changed files with 33 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue