Merge pull request #816 from MatthiasPetermann/patch/fix-fstab-regex

Please fix regex for fstab hook
This commit is contained in:
Barry McCormick
2025-01-17 10:14:49 -08:00
committed by GitHub

View File

@@ -92,7 +92,7 @@ elif [ ! -e "${_hostpath}" ] || [ "${_type}" != "nullfs" ]; then
fi
# Mount permissions,options need to start with "ro" or "rw"
if ! echo "${_perms}" | grep -Eq 'r[w|o],.*$'; then
if ! echo "${_perms}" | grep -Eq 'r[w|o](,.*)?$'; then
error_notify "Detected invalid mount permissions in FSTAB."
warn "Format: /host/path /jail/path nullfs ro 0 0"
warn "Read: ${_fstab}"