summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2016-05-05 22:46:02 +0200
committer Eric Hameleers <alien@slackware.com>2016-05-05 22:46:02 +0200
commit368f978ba5a831f1ef4874b8a2f03dc9a40c8711 (patch)
tree83527c213faa20a222fcafa4c8cfae7a14fbc43c
parentab74cf140916e9444e0259afa0ebd702e9d39fd8 (diff)
downloadliveslak-368f978ba5a831f1ef4874b8a2f03dc9a40c8711.tar.gz
liveslak-368f978ba5a831f1ef4874b8a2f03dc9a40c8711.tar.xz
Without 'fsid' option nfsd refuses to export the filesystem if it is RAM based.
The number '14' used in the script could be any (unique) low-range number.
-rwxr-xr-xpxeserver4
1 files changed, 3 insertions, 1 deletions
diff --git a/pxeserver b/pxeserver
index 0d81663..f270a18 100755
--- a/pxeserver
+++ b/pxeserver
@@ -670,8 +670,10 @@ Press ENTER to start." 14 68
echo > /var/log/pxe_dnsmasq.log
dnsmasq -C ${TMP}/pxe_dnsmasq.conf -z -i ${INTERFACE}
if ! grep -q "^/mnt/livemedia" /etc/exports ; then
+ # Without 'fsid' nfsd refuses to export the filesystem if it RAM based;
+ # the number '14' could be any unique low-range number:
cat <<EOT >> /etc/exports
-/mnt/livemedia ${LOCAL_NETWORK}/${LOCAL_NETMASK}(ro,sync,insecure,no_subtree_check,root_squash)
+/mnt/livemedia ${LOCAL_NETWORK}/${LOCAL_NETMASK}(ro,sync,insecure,no_subtree_check,root_squash,fsid=14)
EOT
fi
sh /etc/rc.d/rc.nfsd restart