Commit 17f36705 authored by Guido Gunther's avatar Guido Gunther

Add a qcow2 image as well

This needs

  Librem5/image-builder#8

to be really useful.

Closes: #9
parent 1dc4e202
......@@ -55,6 +55,7 @@ build_type=unstable
NULL=
uboot_bin=
build_tarball=
want_qcow2=
while getopts ":hb:d:T:B" opt; do
case ${opt} in
......@@ -139,3 +140,9 @@ if [ "${pureos_board}" == "imx8" ] || [ "${pureos_board}" == "ec-som" ]; then
sudo dd if="files/uboot-${uboot_type}/m4.bin" of="${loop}" bs=1024 seek=2
sudo losetup -d "${loop}"
fi
if [ "${want_qcow2}" == 1 ]; then
qcow2="$(basename "${bootimg}" .img)".qcow2
qemu-img convert -f raw -O qcow2 "${bootimg}" "${qcow2}"
qemu-img resize -f qcow2 "${qcow2}" +28G
fi
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