Skip to content

Commit

Permalink
Merge pull request #113 from nebius/fix/nfs-options
Browse files Browse the repository at this point in the history
[NFS] add `no_root_squash` option
  • Loading branch information
malibora authored Dec 12, 2024
2 parents 5e5640d + 4cd1df6 commit 0ed4a5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/cloud-init/nfs-cloud-init.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ runcmd:
- echo "/dev/vdb ${nfs_path} ext4 rw,relatime" | tee -a /etc/fstab
- chown nobody:nogroup ${nfs_path}
- chmod 777 ${nfs_path}
- echo "${nfs_path} ${nfs_ip_range}(rw,async,no_subtree_check)" >> /etc/exports
- echo "${nfs_path} ${nfs_ip_range}(rw,async,no_subtree_check,no_root_squash)" >> /etc/exports
- netplan set ethernets.eth0.mtu=${mtu_size}
- netplan apply
- systemctl restart nfs-kernel-server

0 comments on commit 0ed4a5e

Please sign in to comment.