Making replace-di-banner hook to not fail when no d-i is included in the image.

This commit is contained in:
Daniel Baumann 2009-09-09 10:11:50 +02:00
parent 443eb4a00a
commit a8e71bdb03
1 changed files with 13 additions and 10 deletions

View File

@ -16,16 +16,19 @@ then
TARGET_INITRD="binary/install/gtk/initrd.gz"
REPACK_TMPDIR="binary.initrd"
# cpio does not have a "extract to directory", so we must change
# directory
mkdir -p ${REPACK_TMPDIR}
cd ${REPACK_TMPDIR}
gzip -d < ../${TARGET_INITRD} | cpio -i --make-directories --no-absolute-filenames
if [ -e "${TARGET_INITRD}" ]
then
# cpio does not have a "extract to directory", so we must change
# directory
mkdir -p ${REPACK_TMPDIR}
cd ${REPACK_TMPDIR}
gzip -d < ../${TARGET_INITRD} | cpio -i --make-directories --no-absolute-filenames
# Overwrite banner
cp ../config/binary_debian-installer/banner.png ./usr/share/graphics/logo_debian.png
# Overwrite banner
cp ../config/binary_debian-installer/banner.png ./usr/share/graphics/logo_debian.png
find | cpio -H newc -o | gzip -9 > ../${TARGET_INITRD}
cd ..
rm -rf ${REPACK_TMPDIR}
find | cpio -H newc -o | gzip -9 > ../${TARGET_INITRD}
cd ..
rm -rf ${REPACK_TMPDIR}
fi
fi