vmTools: allow qemu to be overridden via customQemu argument

(cherry picked from commit 65c851cd75)
This commit is contained in:
matthewcroughan
2024-07-08 16:40:01 +01:00
committed by github-actions[bot]
parent 7da1d417b3
commit fabcbb01c5

View File

@@ -1,5 +1,6 @@
{ lib
, pkgs
, customQemu ? null
, kernel ? pkgs.linux
, img ? pkgs.stdenv.hostPlatform.linux-kernel.target
, storeDir ? builtins.storeDir
@@ -218,7 +219,7 @@ rec {
qemuCommandLinux = ''
${qemu-common.qemuBinary qemu} \
${if (customQemu != null) then customQemu else (qemu-common.qemuBinary qemu)} \
-nographic -no-reboot \
-device virtio-rng-pci \
-virtfs local,path=${storeDir},security_model=none,mount_tag=store \