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
|
||||
exec "${QEMUSH_BASE}" \
|
||||
-chardev socket,id=char0,path=/run/virtiofsd.sock \
|
||||
base=$(echo "$QEMUSH_BASE" | cut -d , -f 1)
|
||||
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 \
|
||||
-object memory-backend-memfd,id=mem,size="${QEMUSH_RAM}",share=on \
|
||||
-numa node,memdev=mem \
|
||||
"$@"
|
||||
fi
|
||||
|
||||
exec "$base" "$@"
|
||||
|
|
Loading…
Reference in a new issue