Package:  debian-cd
Version:  3.1.3
Tags:     patch
User:     debian-...@lists.debian.org
UserTags: debian-edu

In Debian Edu, we replace the image shown at the top of the graphical
installer with our own.  It would be nice if this was supported by
debian-cd without a patch.  At the moment we use this patch to repack
the initrd to replace the PNG, because the graphical installer only
read this image during boot, and our new image need to be available
when X is started from the initrd.

diff -urN debian-cd.unpatched.squeeze/tools/boot/sid/boot-x86 
debian-cd.new/tools/boot/sid/boot-x86
--- debian-cd.unpatched.squeeze/tools/boot/sid/boot-x86 2010-10-23 
08:48:16.000000000 +0200
+++ debian-cd.new/tools/boot/sid/boot-x86       2010-10-23 09:39:11.000000000 
+0200
@@ -296,6 +296,27 @@
        pngtopnm < $SPLASHPNG | ppmquant 16 | pnmtopng  > 
boot$N/isolinux/splash.png
 fi
 
+       #added by Debian Edu patch
+       if [ "$LOGOPNG" ] ; then
+               # Add custom logo to the initrd.gz file, replacing old image
+               GTKINITRD=$CDDIR/$INSTALLDIR/gtk/initrd
+               GTKINITRDGZ=$GTKINITRD.gz
+               echo "info: Adding $LOGOPNG to $GTKINITRD"
+               INITRDDIR=$TDIR/initrd-$$
+               # Repack initrd with new image
+               mkdir -p $INITRDDIR
+               (
+                       cd $INITRDDIR
+                       gunzip $GTKINITRDGZ
+                       mkdir -p $INITRDDIR/usr/share/graphics
+                       cp $LOGOPNG 
$INITRDDIR/usr/share/graphics/logo_debian.png
+                       echo usr/share/graphics/logo_debian.png | \
+                       cpio -oA -H newc -F $GTKINITRD
+                       gzip -9 $GTKINITRD
+               )
+               rm -rf $INITRDDIR
+       fi
+ 
 sed -i "s|built on|built $BUILD_DATE; d-i|" boot$N/isolinux/f1.txt
 
 if [ -n "$KERNEL_PARAMS" ]; then

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to