launchers : ajout 9p
This commit is contained in:
parent
7e5c72aee4
commit
fbc979fa8a
1 changed files with 11 additions and 0 deletions
11
qemu/launchers/9p
Executable file
11
qemu/launchers/9p
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/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 "$@"
|
Loading…
Reference in a new issue