nixos/lib/make-disk-image: do not compile a full arch QEMU to convert images

This commit is contained in:
Raito Bezarius 2023-04-28 23:40:57 +02:00
parent 4f9626b6dd
commit 77c0b522b7

View file

@ -511,7 +511,7 @@ let format' = format; in let
${if format == "raw" then ''
mv $diskImage $out/${filename}
'' else ''
${pkgs.qemu}/bin/qemu-img convert -f raw -O ${format} ${compress} $diskImage $out/${filename}
${pkgs.qemu-utils}/bin/qemu-img convert -f raw -O ${format} ${compress} $diskImage $out/${filename}
''}
diskImage=$out/${filename}
'';