cleanup: simplify extraction of zimage

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

@ -516,13 +516,6 @@ function setup_bootscripts {
} }
function prepare_uimage {
mkdir -p ${TEMPDIR}/kernel
cd ${TEMPDIR}/kernel
dpkg -x ${DIR}/dl/${DIST}/${ACTUAL_DEB_FILE} ${TEMPDIR}/kernel
cd ${DIR}/
}
function prepare_initrd { function prepare_initrd {
mkdir -p ${TEMPDIR}/initrd-tree mkdir -p ${TEMPDIR}/initrd-tree
cd ${TEMPDIR}/initrd-tree cd ${TEMPDIR}/initrd-tree
@ -698,12 +691,21 @@ esac
cd ${DIR}/ cd ${DIR}/
} }
function extract_zimage {
echo "Extracting Kernel zImage"
echo "-----------------------------"
dpkg -x ${DIR}/dl/${DIST}/${ACTUAL_DEB_FILE} ${TEMPDIR}/kernel
}
function create_custom_netinstall_image { function create_custom_netinstall_image {
echo "" echo ""
echo "Creating Custom NetInstall Image" echo "Creating Custom NetInstall Image"
echo "-----------------------------" echo "-----------------------------"
mkdir -p ${TEMPDIR}/kernel
prepare_initrd prepare_initrd
prepare_uimage
extract_zimage
} }
function unmount_all_drive_partitions { function unmount_all_drive_partitions {

Loading…
Cancel
Save