parent
3218d7e6bc
commit
124f4dc7dd
|
@ -286,7 +286,7 @@ rec {
|
|||
createEmptyImage = {size, fullName}: ''
|
||||
mkdir $out
|
||||
diskImage=$out/disk-image.qcow2
|
||||
qemu-img create -f qcow2 $diskImage "${toString size}M"
|
||||
${kvm}/bin/qemu-img create -f qcow2 $diskImage "${toString size}M"
|
||||
|
||||
mkdir $out/nix-support
|
||||
echo "${fullName}" > $out/nix-support/full-name
|
||||
|
@ -373,7 +373,7 @@ rec {
|
|||
diskImage=$(pwd)/disk-image.qcow2
|
||||
origImage=${attrs.diskImage}
|
||||
if test -d "$origImage"; then origImage="$origImage/disk-image.qcow2"; fi
|
||||
qemu-img create -b "$origImage" -f qcow2 $diskImage
|
||||
${kvm}/bin/qemu-img create -b "$origImage" -f qcow2 $diskImage
|
||||
|
||||
echo "$buildCommand" > cmd
|
||||
|
||||
|
@ -400,7 +400,7 @@ rec {
|
|||
diskImage=$(pwd)/disk-image.qcow2
|
||||
origImage=${attrs.diskImage}
|
||||
if test -d "$origImage"; then origImage="$origImage/disk-image.qcow2"; fi
|
||||
qemu-img create -b "$origImage" -f qcow2 $diskImage
|
||||
${kvm}/bin/qemu-img create -b "$origImage" -f qcow2 $diskImage
|
||||
'';
|
||||
|
||||
/* Inside the VM, run the stdenv setup script normally, but at the
|
||||
|
@ -483,7 +483,7 @@ rec {
|
|||
fi
|
||||
diskImage="$1"
|
||||
if ! test -e "$diskImage"; then
|
||||
qemu-img create -b ${image}/disk-image.qcow2 -f qcow2 "$diskImage"
|
||||
${kvm}/bin/qemu-img create -b ${image}/disk-image.qcow2 -f qcow2 "$diskImage"
|
||||
fi
|
||||
export TMPDIR=$(mktemp -d)
|
||||
export out=/dummy
|
||||
|
|
Loading…
Reference in New Issue