Bug#500134: /etc/grub.d/05_debian_theme: make changing splash image easier

Krzysztof Burghardt krzysztof at burghardt.pl
Thu Sep 25 11:54:15 UTC 2008


Package: grub-pc
Version: 1.96+20080724-10
Severity: wishlist
Tags: patch

Dear GRUB2 package maintainers,

I'd like to introduce to /etc/grub.d/05_debian_theme config file enchances
provided by Yan Morin. Those enchances makes changing colors and splasimages
easier. If you, decide to accept this patch I will provide grub2-spalshimges
package with updated README to keep it in sync with grub-pc package.

--- /etc/grub.d/05_debian_theme 2008-09-06 14:20:12.000000000 +0000
+++ /home/kb/NEW/05_debian_theme        2008-09-25 11:45:52.943328554 +0000
@@ -2,6 +2,11 @@
 
 source /usr/lib/grub/update-grub_lib
 
+THEME_IMAGE_FILE=debian-blueish-wallpaper-640x480
+THEME_IMAGE_COLOR_NORMAL=black/black
+THEME_IMAGE_COLOR_HIGHLIGHT=magenta/black
+THEME_IMAGE_GRUB=/usr/share/images/grub/
+
 set_blue_theme()
 {
   cat << EOF
@@ -13,7 +18,7 @@
 # check for usable backgrounds
 use_bg=false
 if [ "$GRUB_TERMINAL" = "gfxterm" ] ; then
-  for i in {/boot/grub,/usr/share/images/desktop-base}/debian-blueish-wallpaper-640x480.{png,tga} ; do
+  for i in {/boot/grub,/usr/share/images/desktop-base,${THEME_IMAGE_GRUB}}/${THEME_IMAGE_FILE}.{png,tga} ; do
     if is_path_readable_by_grub $i ; then 
       bg=$i
       case ${bg} in
@@ -36,8 +41,8 @@
   cat << EOF
 insmod ${reader}
 if background_image `make_system_path_relative_to_its_root ${bg}` ; then
-  set color_normal=black/black
-  set color_highlight=magenta/black
+  set color_normal=${THEME_IMAGE_COLOR_NORMAL}
+  set color_highlight=${THEME_IMAGE_COLOR_HIGHLIGHT}
 else
 EOF
 fi

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]   1.5.23           Debian configuration management sy
ii  grub-common             1.96+20080724-10 GRand Unified Bootloader, version 
ii  libc6                   2.7-13           GNU C Library: Shared libraries
ii  liblzo2-2               2.03-1           data compression library
ii  libncurses5             5.6+20080920-1   shared libraries for terminal hand

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
ii  desktop-base                  5.0.0      common files for the Debian Deskto
pn  os-prober                     <none>     (no description available)

-- debconf information excluded





More information about the Pkg-grub-devel mailing list