From 368f978ba5a831f1ef4874b8a2f03dc9a40c8711 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Thu, 5 May 2016 22:46:02 +0200 Subject: 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. --- pxeserver | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 <> /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 -- cgit v1.2.3