mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
vmTools: allow qemu to be overridden via customQemu argument
This commit is contained in:
parent
f53f729ecd
commit
65c851cd75
@ -1,5 +1,6 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, pkgs
|
, pkgs
|
||||||
|
, customQemu ? null
|
||||||
, kernel ? pkgs.linux
|
, kernel ? pkgs.linux
|
||||||
, img ? pkgs.stdenv.hostPlatform.linux-kernel.target
|
, img ? pkgs.stdenv.hostPlatform.linux-kernel.target
|
||||||
, storeDir ? builtins.storeDir
|
, storeDir ? builtins.storeDir
|
||||||
@ -218,7 +219,7 @@ rec {
|
|||||||
|
|
||||||
|
|
||||||
qemuCommandLinux = ''
|
qemuCommandLinux = ''
|
||||||
${qemu-common.qemuBinary qemu} \
|
${if (customQemu != null) then customQemu else (qemu-common.qemuBinary qemu)} \
|
||||||
-nographic -no-reboot \
|
-nographic -no-reboot \
|
||||||
-device virtio-rng-pci \
|
-device virtio-rng-pci \
|
||||||
-virtfs local,path=${storeDir},security_model=none,mount_tag=store \
|
-virtfs local,path=${storeDir},security_model=none,mount_tag=store \
|
||||||
|
Loading…
Reference in New Issue
Block a user