[Bug 1027223] Re: update-grub ignores GRUB_COLOR_NORMAL and GRUB_COLOR_HIGHLIGHT

Ben Fritz fritzophrenic at gmail.com
Fri Sep 26 02:26:18 UTC 2014


I think I managed to find a satisfactory fix. Please can this get
applied so I can stop doing this manually?

First, in /etc/grub.d/05_debian_theme, there are several lines that call
"set_background_image" with various values for the wallpaper. But only
one of those lines sets any colors, i.e.:

# Next try to use the background image and colors specified by desktop-base.
if set_background_image "${WALLPAPER}" "${COLOR_NORMAL}" "${COLOR_HIGHLIGHT}"; then
	exit 0
fi

I simply added the same "${COLOR_NORMAL}" "${COLOR_HIGHLIGHT}" to every
other function call to set_background_image. Why shouldn't the colors be
passed for every method of setting an image?

Secondly, I updated /usr/sbin/grub-mkconfig to actually set those
variables, from the variables used by kde-grub2-config and other
applications, by adding these two lines:

export COLOR_NORMAL=$GRUB_COLOR_NORMAL
export COLOR_HIGHLIGHT=$GRUB_COLOR_HIGHLIGHT

Now, after "sudo update-grub", my color settings are working fine.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1027223

Title:
  update-grub ignores GRUB_COLOR_NORMAL and GRUB_COLOR_HIGHLIGHT

Status in “grub2” package in Ubuntu:
  Confirmed

Bug description:
  This is because these two variables are not exported, as expected.
  Patching /usr/sbin/grub-mkconfig with

  248c248,250
  <   GRUB_BADRAM
  ---
  >   GRUB_BADRAM \
  >   GRUB_COLOR_NORMAL \
  >   GRUB_COLOR_HIGHLIGHT

  fixes this bug.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: grub-common 1.99-21ubuntu3.1
  Uname: Linux 3.4.6 x86_64
  ApportVersion: 2.0.1-0ubuntu11
  Architecture: amd64
  Date: Fri Jul 20 21:25:26 2012
  InstallationMedia: Xubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
  ProcEnviron:
   LANGUAGE=de_DE:en
   TERM=screen-bce
   PATH=(custom, no user)
   LANG=de_DE.UTF-8
   SHELL=/bin/bash
  SourcePackage: grub2
  UpgradeStatus: Upgraded to precise on 2012-07-16 (4 days ago)
  modified.conffile..etc.grub.d.05.debian.theme: [modified]
  mtime.conffile..etc.grub.d.05.debian.theme: 2012-07-20T20:59:12.486533

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1027223/+subscriptions



More information about the foundations-bugs mailing list