launchers/virtiofs : mise à jour

This commit is contained in:
Ahurac 2024-03-09 23:32:06 +01:00
parent 759e085fc0
commit 55b0f56fb6

View file

@ -1,7 +1,15 @@
#!/bin/sh -x #!/bin/sh -x
exec "${QEMUSH_BASE}" \ base=$(echo "$QEMUSH_BASE" | cut -d , -f 1)
-chardev socket,id=char0,path=/run/virtiofsd.sock \ QEMUSH_BASE=$(echo "$QEMUSH_BASE" | sed "s/^${base}//" | sed 's/^,//')
. /run/runit/service/virtiofsd/conf
if [ -S "$socket" ]; then set -- \
-chardev socket,id=char0,path="${socket}" \
-device vhost-user-fs-pci,chardev=char0,tag=shared \ -device vhost-user-fs-pci,chardev=char0,tag=shared \
-object memory-backend-memfd,id=mem,size="${QEMUSH_RAM}",share=on \ -object memory-backend-memfd,id=mem,size="${QEMUSH_RAM}",share=on \
-numa node,memdev=mem \ -numa node,memdev=mem \
"$@" "$@"
fi
exec "$base" "$@"