forked from mirrors/nixpkgs
nixos/lib/make-(multi|single)-disk-zfs-image: use qemu_kvm (host arch) instead of qemu (all arches)
This commit is contained in:
parent
77c0b522b7
commit
a22826f46a
|
@ -261,8 +261,8 @@ let
|
||||||
mv $bootDiskImage $out/${bootFilename}
|
mv $bootDiskImage $out/${bootFilename}
|
||||||
mv $rootDiskImage $out/${rootFilename}
|
mv $rootDiskImage $out/${rootFilename}
|
||||||
'' else ''
|
'' else ''
|
||||||
${pkgs.qemu}/bin/qemu-img convert -f raw -O ${formatOpt} ${compress} $bootDiskImage $out/${bootFilename}
|
${pkgs.qemu_kvm}/bin/qemu-img convert -f raw -O ${formatOpt} ${compress} $bootDiskImage $out/${bootFilename}
|
||||||
${pkgs.qemu}/bin/qemu-img convert -f raw -O ${formatOpt} ${compress} $rootDiskImage $out/${rootFilename}
|
${pkgs.qemu_kvm}/bin/qemu-img convert -f raw -O ${formatOpt} ${compress} $rootDiskImage $out/${rootFilename}
|
||||||
''}
|
''}
|
||||||
bootDiskImage=$out/${bootFilename}
|
bootDiskImage=$out/${bootFilename}
|
||||||
rootDiskImage=$out/${rootFilename}
|
rootDiskImage=$out/${rootFilename}
|
||||||
|
|
|
@ -244,7 +244,7 @@ let
|
||||||
${if formatOpt == "raw" then ''
|
${if formatOpt == "raw" then ''
|
||||||
mv $rootDiskImage $out/${rootFilename}
|
mv $rootDiskImage $out/${rootFilename}
|
||||||
'' else ''
|
'' else ''
|
||||||
${pkgs.qemu}/bin/qemu-img convert -f raw -O ${formatOpt} ${compress} $rootDiskImage $out/${rootFilename}
|
${pkgs.qemu_kvm}/bin/qemu-img convert -f raw -O ${formatOpt} ${compress} $rootDiskImage $out/${rootFilename}
|
||||||
''}
|
''}
|
||||||
rootDiskImage=$out/${rootFilename}
|
rootDiskImage=$out/${rootFilename}
|
||||||
set -x
|
set -x
|
||||||
|
|
Loading…
Reference in a new issue