qemush/qemu/launchers/9p

12 lines
327 B
Text
Raw Normal View History

2024-03-11 15:11:02 +01:00
#!/usr/bin/env sh
base=$(echo "$QEMUSH_BASE" | cut -d , -f 1)
QEMUSH_BASE=$(echo "$QEMUSH_BASE" | sed "s/^${base}//" | sed 's/^,//')
set -- "$base" \
-fsdev local,security_model=passthrough,id=fsdev0,path="${HOME}/shared/${QEMUSH_NAME}" \
-device virtio-9p-pci,id=fs0,fsdev=fsdev0,mount_tag=shared \
"$@"
set -x
exec "$@"