mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
runInLinuxImage: Add missing backing format
This commit is contained in:
parent
0625121793
commit
9bf244964d
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user