mirror of
https://github.com/nix-community/disko.git
synced 2026-12-04 15:03:28 +01:00
make-disk-image: fix virtiofs
This commit is contained in:
1 parent
9503f225a4
commit
fa88901f1e
1 file changed
+1
-1
@@ -222,7 +222,7 @@ in
|
|||||||
QEMU_OPTS=${lib.escapeShellArg QEMU_OPTS}
|
QEMU_OPTS=${lib.escapeShellArg QEMU_OPTS}
|
||||||
# replace quoted $out with the actual path
|
# replace quoted $out with the actual path
|
||||||
QEUM_OPTS=''${QEMU_OPTS//\$out/$out}
|
QEUM_OPTS=''${QEMU_OPTS//\$out/$out}
|
||||||
QEMU_OPTS+=" -m $build_memory"
|
QEMU_OPTS+=" -m $build_memory -object memory-backend-memfd,id=mem,size=''${build_memory}M,share=on -machine memory-backend=mem"
|
||||||
export QEMU_OPTS
|
export QEMU_OPTS
|
||||||
|
|
||||||
${pkgs.bash}/bin/sh -e ${vmTools.vmRunCommand vmTools.qemuCommandLinux}
|
${pkgs.bash}/bin/sh -e ${vmTools.vmRunCommand vmTools.qemuCommandLinux}
|
||||||
|
|||||||
Reference in new issue
Block a user