15 lines
422 B
Bash
Executable file
15 lines
422 B
Bash
Executable file
#!/bin/sh -x
|
|
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" "$@"
|