Commit 9ddf17a9 by yinqidi

modify qcow2 making

parent a654b6cd
......@@ -10,6 +10,10 @@ IID=${1}
ARCH=${2}
WORK_DIR="${WORK_DIR}/${IID}"
cd ${WORK_DIR}
qemu-img convert -f raw -O qcow2 image.raw image.qcow2
cd -
if [ "$ARCH" == "mipseb" ]; then
cp "${KERNEL_DIR}/${ARCH}/vmlinux" "${WORK_DIR}/vmlinux"
chmod a+x "${WORK_DIR}/vmlinux"
......
......@@ -96,5 +96,3 @@ sync
umount "${DEVICE}"
kpartx -d "${IMAGE}"
cd ${WORK_DIR}
qemu-img convert -f raw -O qcow2 image.raw image.qcow2
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment