Merge pull request #143237 from ck3d/fix-runInLinuxImage
vmTools: Fix missing backing format in runInLinuxImage
This commit is contained in:
commit
26f5e6dd5f
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -28,10 +28,10 @@ with vmTools;
|
||||||
buildInDebian = runInLinuxImage (stdenv.mkDerivation {
|
buildInDebian = runInLinuxImage (stdenv.mkDerivation {
|
||||||
name = "deb-compile";
|
name = "deb-compile";
|
||||||
src = patchelf.src;
|
src = patchelf.src;
|
||||||
diskImage = diskImages.ubuntu1204i386;
|
diskImage = diskImages.ubuntu1804i386;
|
||||||
|
diskImageFormat = "qcow2";
|
||||||
memSize = 512;
|
memSize = 512;
|
||||||
prePhases = [ sysInfoPhase ];
|
postHook = ''
|
||||||
sysInfoPhase = ''
|
|
||||||
dpkg-query --list
|
dpkg-query --list
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue