launchers/virtiofs : mise à jour
This commit is contained in:
parent
759e085fc0
commit
55b0f56fb6
1 changed files with 11 additions and 3 deletions
|
@ -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" "$@"
|
||||||
|
|
Loading…
Reference in a new issue