Use latest virtiofs. The distributed daemon sometimes causes issues.

Binary downloaded from: https://gitlab.com/virtio-fs/virtiofsd
This commit is contained in:
Andreas B. Mundt 2023-09-06 11:41:20 +02:00
parent fbabce80c7
commit 9e16c216a7
3 changed files with 2 additions and 1 deletions

View file

@ -5,7 +5,7 @@ Description=share home folders via virtiofsd
[Service] [Service]
Type=exec Type=exec
ExecStartPre=/usr/bin/mkdir -p /run/virtiofs/ ExecStartPre=/usr/bin/mkdir -p /run/virtiofs/
ExecStart=/usr/bin/sh -c 'v="%i"; soc="$${v%%:*}"; usr="$${v##*:}"; exec /usr/lib/qemu/virtiofsd --socket-path="/run/virtiofs/$${soc}.sock" -o source="/lmn/media/$${usr}"' ExecStart=/usr/bin/sh -c 'v="%i"; soc="$${v%%:*}"; usr="$${v##*:}"; exec /usr/local/bin/virtiofsd --announce-submounts --socket-path="/run/virtiofs/$${soc}.sock" --shared-dir "/lmn/media/$${usr}"'
ExecStartPost=/usr/bin/chmod 755 /run/virtiofs/ ExecStartPost=/usr/bin/chmod 755 /run/virtiofs/
ExecStartPost=/usr/bin/sh -c 'v="%i"; soc="$${v%%:*}"; usr="$${v##*:}"; chown "$$usr" "/run/virtiofs/$${soc}.sock"' ExecStartPost=/usr/bin/sh -c 'v="%i"; soc="$${v%%:*}"; usr="$${v##*:}"; chown "$$usr" "/run/virtiofs/$${soc}.sock"'
ExecStopPost=/usr/bin/sh -c 'v="%i"; soc="$${v%%:*}"; rm "/run/virtiofs/$${soc}.sock"' ExecStopPost=/usr/bin/sh -c 'v="%i"; soc="$${v%%:*}"; rm "/run/virtiofs/$${soc}.sock"'

BIN
roles/lmn_vm/files/virtiofsd Executable file

Binary file not shown.

View file

@ -132,6 +132,7 @@
- start-virtiofsd.sh - start-virtiofsd.sh
- linbo-torrenthelper.sh - linbo-torrenthelper.sh
- vmimage-torrent - vmimage-torrent
- virtiofsd
- name: Deploy linbo-torrent defaults - name: Deploy linbo-torrent defaults
copy: copy: