cleanup: compression of initrd.mod

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/8/head
Robert Nelson 13 years ago
parent ee17e7574d
commit 75857ffc6a

@ -686,13 +686,18 @@ esac
fi fi
fi fi
}
function recompress_initrd {
echo "Compressing Debian-Installer image"
echo "-----------------------------"
cd ${TEMPDIR}/initrd-tree/ cd ${TEMPDIR}/initrd-tree/
find . | cpio -o -H newc | gzip -9 > ${TEMPDIR}/initrd.mod.gz find . | cpio -o -H newc | gzip -9 > ${TEMPDIR}/initrd.mod.gz
cd ${DIR}/ cd ${DIR}/
} }
function extract_zimage { function extract_zimage {
echo "Extracting Kernel zImage" echo "Extracting Boot Kernel zImage"
echo "-----------------------------" echo "-----------------------------"
dpkg -x ${DIR}/dl/${DIST}/${ACTUAL_DEB_FILE} ${TEMPDIR}/kernel dpkg -x ${DIR}/dl/${DIST}/${ACTUAL_DEB_FILE} ${TEMPDIR}/kernel
} }
@ -705,6 +710,7 @@ function create_custom_netinstall_image {
prepare_initrd prepare_initrd
recompress_initrd
extract_zimage extract_zimage
} }

Loading…
Cancel
Save