/usr/share/ltsp/plugins/ltsp-build-client/Gentoo/095-exports is in ltsp-server 5.4.2-6+deb7u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | case "$MODE" in
configure)
OVERRIDE_EXPORTS=${OVERRIDE_EXPORTS:-"false"}
;;
finalization)
# Export LTSP chroot using NFS to the LTSP client network
if ! grep -q "^$BASE" /etc/exports ; then
if [ "$OVERRIDE_EXPORTS" = "true" ]; then
cat <<EOF >> /etc/exports
# Automatically added by ltsp-server
$BASE *(ro,no_root_squash,async,no_subtree_check)
EOF
/etc/init.d/nfsmount restart
else
cat <<EOF
WARNING: no entry for $BASE in /etc/exports,
you may want to add the following line to /etc/exports:
$BASE *(ro,no_root_squash,async,no_subtree_check)
and then run the command:
/etc/init.d/nfsmount restart
EOF
fi
fi
;;
esac
|