/usr/share/ltsp/plugins/ltsp-build-client/Debian/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 30 31 32 33 34 35 36 37 | case "$MODE" in
configure)
OVERRIDE_EXPORTS=${OVERRIDE_EXPORTS:-"false"}
;;
finalization)
# Export LTSP chroot using NFS to the LTSP client network
check_exports=/etc/exports
for x in /etc/exports.d/*.exports ; do
if [ -f "$x" ]; then
check_exports="$check_exports $x"
fi
done
if ! grep -q "^$BASE" $check_exports ; then
if [ -z "$NFS_EXPORT_STRING" ]; then
NFS_EXPORT_STRING='*(ro,no_root_squash,async,no_subtree_check)'
fi
if [ "$OVERRIDE_EXPORTS" = "true" ]; then
cat <<EOF >> /etc/exports
# Automatically added by ltsp-server
$BASE $NFS_EXPORT_STRING
EOF
invoke-rc.d nfs-kernel-server reload
else
cat <<EOF
WARNING: no entry for $BASE in /etc/exports,
you may want to add the following line to /etc/exports:
$BASE $NFS_EXPORT_STRING
and then run the command:
invoke-rc.d nfs-kernel-server reload
EOF
fi
fi
;;
esac
|