* Add a hack to support gfxterm / background_image on systems where /usr

isn't accessible.  (Closes: #464911, #463144)
    - grub-pc.postinst
    - grub.d/05_debian_theme
This commit is contained in:
rmh 2008-02-13 13:52:58 +00:00
parent ad0d81e480
commit 075397d802
3 changed files with 14 additions and 2 deletions

6
debian/changelog vendored
View File

@ -4,11 +4,15 @@ grub2 (1.96+20080210-2) unstable; urgency=low
* Add new upgrade-from-grub-legacy script for the user to complete the upgrade
process from GRUB Legacy, and advertise it prominently in menu.lst.
(Closes: #464912)
* Add a hack to support gfxterm / background_image on systems where /usr
isn't accessible. (Closes: #464911, #463144)
- grub-pc.postinst
- grub.d/05_debian_theme
[ Updated translations ]
* Portuguese (pt.po) by Ricardo Silva (Closes: #465137)
-- Robert Millan <rmh@aybabtu.com> Mon, 11 Feb 2008 00:04:07 +0100
-- Robert Millan <rmh@aybabtu.com> Wed, 13 Feb 2008 14:48:14 +0100
grub2 (1.96+20080210-1) unstable; urgency=high

View File

@ -34,6 +34,14 @@ case "$1" in
update-grub
fi
fi
# hack to support gfxterm / background_image on systems where /usr isn't
# accessible.
for i in /usr/share/grub/unicode.pff /usr/share/images/desktop-base/debian-blueish-wallpaper-640x480.png ; do
if test -e $i && ! grub-probe -t fs $i >/dev/null 2>&1 ; then
cp $i /boot/grub/
fi
done
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;

View File

@ -14,7 +14,7 @@ EOF
# check for usable backgrounds
use_bg=false
if [ "$GRUB_TERMINAL" = "gfxterm" ] ; then
for i in /usr/share/images/desktop-base/debian-blueish-wallpaper-640x480.{png,tga} ; do
for i in {/usr/share/images/desktop-base,/boot/grub}/debian-blueish-wallpaper-640x480.{png,tga} ; do
if bg=`convert_system_path_to_grub_path $i` ; then
echo "Found Debian background: `basename ${bg}`" >&2
use_bg=true