Skip to content
Snippets Groups Projects
Commit 5134ed45 authored by godog's avatar godog
Browse files

Merge branch 'qemu-img' into 'master'

ci: use qemu-img to convert and compress rootfs

See merge request !14
parents 1e7fb0f4 4482b167
No related branches found
No related tags found
1 merge request!14ci: use qemu-img to convert and compress rootfs
Pipeline #59640 passed
...@@ -9,7 +9,7 @@ include: "https://git.autistici.org/pipelines/debian/raw/master/common.yml" ...@@ -9,7 +9,7 @@ include: "https://git.autistici.org/pipelines/debian/raw/master/common.yml"
- env http_proxy=${APT_PROXY:+http://${APT_PROXY}} autopkgtest-build-qemu --size 10G $DIST build-$CI_JOB_ID/rootfs.img http://deb.debian.org/debian amd64 $PWD/aux/post-install.sh - env http_proxy=${APT_PROXY:+http://${APT_PROXY}} autopkgtest-build-qemu --size 10G $DIST build-$CI_JOB_ID/rootfs.img http://deb.debian.org/debian amd64 $PWD/aux/post-install.sh
- ./aux/extract-kernel.sh build-$CI_JOB_ID/rootfs.img build-$CI_JOB_ID/ - ./aux/extract-kernel.sh build-$CI_JOB_ID/rootfs.img build-$CI_JOB_ID/
- mv build-$CI_JOB_ID/rootfs.img build-$CI_JOB_ID/rootfs.img.orig - mv build-$CI_JOB_ID/rootfs.img build-$CI_JOB_ID/rootfs.img.orig
- env TMPDIR=$PWD virt-sparsify --compress build-$CI_JOB_ID/rootfs.img.orig build-$CI_JOB_ID/rootfs.img - qemu-img convert -c build-$CI_JOB_ID/rootfs.img.orig -O qcow2 build-$CI_JOB_ID/rootfs.img
- rm build-$CI_JOB_ID/rootfs.img.orig - rm build-$CI_JOB_ID/rootfs.img.orig
- tar -c -f $DIST-$CI_JOB_ID.tar -C build-$CI_JOB_ID . - tar -c -f $DIST-$CI_JOB_ID.tar -C build-$CI_JOB_ID .
- ls -l $DIST-$CI_JOB_ID.tar - ls -l $DIST-$CI_JOB_ID.tar
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment