make-disk-image: fix virtiofs

This commit is contained in:
Sávio authored and lassulus committed 2025-02-14 06:27:20 +00:00
1 parent 9503f225a4
commit fa88901f1e
1 file changed
+1 -1
+1 -1
View File
@@ -222,7 +222,7 @@ in
QEMU_OPTS=${lib.escapeShellArg QEMU_OPTS}
# replace quoted $out with the actual path
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
${pkgs.bash}/bin/sh -e ${vmTools.vmRunCommand vmTools.qemuCommandLinux}