fix(nfs): remove dangerous -s flag and unsupported sync option from unfs3

This commit is contained in:
2026-03-31 15:50:25 +02:00
parent b4173ea6c9
commit 35bb3aad89
3 changed files with 9 additions and 11 deletions

View File

@@ -18,7 +18,6 @@ else
NETWORK=$(jq -r ".shares[${i}].allowed_network" "${CONFIG}")
READ_ONLY=$(jq -r ".shares[${i}].read_only" "${CONFIG}")
ROOT_SQUASH=$(jq -r ".shares[${i}].root_squash" "${CONFIG}")
SYNC=$(jq -r ".shares[${i}].sync" "${CONFIG}")
MOUNT_PATH="/${FOLDER}"
if [ "${READ_ONLY}" = "true" ]; then
@@ -33,10 +32,6 @@ else
OPTIONS="${OPTIONS},no_root_squash"
fi
if [ "${SYNC}" = "true" ]; then
OPTIONS="${OPTIONS},sync"
fi
OPTIONS="${OPTIONS},insecure"
bashio::log.info "Exporting ${MOUNT_PATH} to ${NETWORK} (${OPTIONS})..."
@@ -53,4 +48,4 @@ cat /etc/exports
# Start unfs3 user-space NFS server in foreground
bashio::log.info "Starting unfs3 NFS server..."
exec unfsd -d -s -e /etc/exports
exec unfsd -d -e /etc/exports