From 75857ffc6a0b191f53608db7cb329adf322551f8 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Mon, 21 Nov 2011 15:03:42 -0600 Subject: [PATCH] cleanup: compression of initrd.mod Signed-off-by: Robert Nelson --- mk_mmc.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index fb0ab51..4648eee 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -686,13 +686,18 @@ esac fi fi +} + +function recompress_initrd { + echo "Compressing Debian-Installer image" + echo "-----------------------------" cd ${TEMPDIR}/initrd-tree/ find . | cpio -o -H newc | gzip -9 > ${TEMPDIR}/initrd.mod.gz cd ${DIR}/ } function extract_zimage { - echo "Extracting Kernel zImage" + echo "Extracting Boot Kernel zImage" echo "-----------------------------" dpkg -x ${DIR}/dl/${DIST}/${ACTUAL_DEB_FILE} ${TEMPDIR}/kernel } @@ -705,6 +710,7 @@ function create_custom_netinstall_image { prepare_initrd + recompress_initrd extract_zimage }