Support replacing the g-i image with ones own image. Closes: #601189

This commit is contained in:
Steve McIntyre 2010-10-26 18:33:22 +00:00
parent e531a557c2
commit 938be9c307
2 changed files with 24 additions and 0 deletions

3
debian/changelog vendored
View File

@ -60,6 +60,9 @@ debian-cd (3.1.4) unstable; urgency=low
* Don't exclude reiserfsprogs-udeb, as rescue-mode depends on it.
Closes: #593972
[ Petter Reinholdtsen ]
* Support replacing the g-i image with ones own image. Closes: #601189
-- Steve McIntyre <93sam@debian.org> Tue, 27 Feb 2010 12:24:29 +0100
debian-cd (3.1.3) unstable; urgency=low

View File

@ -296,6 +296,27 @@ if [ "$SPLASHPNG" ] ; then
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