/usr/share/ltsp/plugins/ltsp-build-client/ALTLinux/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 29 | case "$MODE" in
configure)
OVERRIDE_EXPORTS=${OVERRIDE_EXPORTS:-"false"}
;;
finalization)
# Export LTSP chroot using NFS to the LTSP client network
if ! egrep -q "^$ROOT[[:blank:]]+" /etc/exports ; then
NFS_EXPORT_STRING=${NFS_EXPORT_STRING:-"(ro,no_root_squash,async,no_subtree_check)"}
if [ "$OVERRIDE_EXPORTS" = "true" ]; then
cat <<EOF >> /etc/exports
# Automatically added by ltsp-server
$ROOT (ro,no_root_squash,async)
EOF
#service nfs restart
else
cat <<EOF
WARNING: no entry for $ROOT in /etc/exports,
you may want to add the following line to /etc/exports:
$ROOT $NFS_EXPORT_STRING
and then run the command:
service nfs restart
EOF
fi
fi
;;
esac
|