From 284734f41d1852331b03bc15dcefcc5929401f98 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Tue, 28 Jul 2009 19:02:15 +0200 Subject: [PATCH] grub2 changes: use ascii.pf2 as grub2 font; support terminal_output command --- debian/changelog | 9 +++++++++ grml2usb | 18 +++++++++++------- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/debian/changelog b/debian/changelog index 3332c6e..0cbc31f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,12 @@ +grml2usb (0.9.9) UNRELEASED; urgency=low + + * Use ascii.pf2 as grub2 font, since grub2 (1.96+20090307-1) + the old ascii.pff isn't available anymore. + * Use terminal_output if available, otherwise fallback to old + older 'terminal'-command (thanks to Felix Zielcke for helping). + + -- Michael Prokop Tue, 28 Jul 2009 18:52:04 +0200 + grml2usb (0.9.8) unstable; urgency=low * Support installation on /dev/loop*-devices. diff --git a/grml2usb b/grml2usb index fd6dc17..3009327 100755 --- a/grml2usb +++ b/grml2usb @@ -18,7 +18,7 @@ from inspect import isroutine, isclass import datetime, logging, os, re, subprocess, sys, tempfile, time # global variables -PROG_VERSION = "0.9.8" +PROG_VERSION = "0.9.9" MOUNTED = set() # register mountpoints TMPFILES = set() # register tmpfiles DATESTAMP = time.mktime(datetime.datetime.now().timetuple()) # unique identifier for syslinux.cfg @@ -249,12 +249,16 @@ set timeout=5 insmod fat -if font /boot/grub/ascii.pff ; then +if loadfont /boot/grub/ascii.pf2 ; then insmod png set gfxmode=640x480 insmod gfxterm insmod vbe - terminal gfxterm + if terminal_output.gfxterm ; then true ; else + # For backward compatibility with versions of terminal.mod that don't + # understand terminal_output + terminal gfxterm + fi fi if background_image /boot/grub/grml.png ; then @@ -1167,10 +1171,10 @@ def copy_bootloader_files(iso_mount, target): proc.wait() # font file for graphical bootsplash in grub - if os.path.isfile("/usr/share/grub/ascii.pff"): - logging.debug("rsync -rlptDH --inplace /usr/share/grub/ascii.pff to %s" % grub_target + 'ascii.pff') - proc = subprocess.Popen(["rsync", "-rlptDH", "--inplace", '/usr/share/grub/ascii.pff', - grub_target + 'ascii.pff']) + if os.path.isfile("/usr/share/grub/ascii.pf2"): + logging.debug("rsync -rlptDH --inplace /usr/share/grub/ascii.pf2 to %s" % grub_target + 'ascii.pf2') + proc = subprocess.Popen(["rsync", "-rlptDH", "--inplace", '/usr/share/grub/ascii.pf2', + grub_target + 'ascii.pf2']) proc.wait() -- 2.1.4