2024-01-21 12:55:47 +01:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2024-03-09 00:07:51 +01:00
|
|
|
# Read configuration
|
|
|
|
sourceconf() {
|
|
|
|
[ -r "$1" ] && . "$1"
|
|
|
|
}
|
|
|
|
sourceconf ./conf
|
|
|
|
|
2024-01-21 12:55:47 +01:00
|
|
|
# Start a virtiofsd sharing qemu shared dir
|
|
|
|
exec /usr/lib/virtiofsd \
|
2024-03-09 00:07:51 +01:00
|
|
|
--shared-dir "$shared_dir" \
|
|
|
|
--socket-path "$socket" \
|
2024-01-21 12:55:47 +01:00
|
|
|
--socket-group qemu
|