runInLinuxImage: Add missing backing format

This commit is contained in:
Christian Kögler 2021-10-28 00:05:27 +02:00
parent 0625121793
commit 9bf244964d
2 changed files with 2 additions and 1 deletions

View File

@ -390,7 +390,7 @@ rec {
diskImage=$(pwd)/disk-image.qcow2 diskImage=$(pwd)/disk-image.qcow2
origImage=${attrs.diskImage} origImage=${attrs.diskImage}
if test -d "$origImage"; then origImage="$origImage/disk-image.qcow2"; fi if test -d "$origImage"; then origImage="$origImage/disk-image.qcow2"; fi
${qemu}/bin/qemu-img create -b "$origImage" -f qcow2 $diskImage ${qemu}/bin/qemu-img create -F ${attrs.diskImageFormat} -b "$origImage" -f qcow2 $diskImage
''; '';
/* Inside the VM, run the stdenv setup script normally, but at the /* Inside the VM, run the stdenv setup script normally, but at the

View File

@ -29,6 +29,7 @@ with vmTools;
name = "deb-compile"; name = "deb-compile";
src = patchelf.src; src = patchelf.src;
diskImage = diskImages.ubuntu1804i386; diskImage = diskImages.ubuntu1804i386;
diskImageFormat = "qcow2";
memSize = 512; memSize = 512;
postHook = '' postHook = ''
dpkg-query --list dpkg-query --list