summaryrefslogtreecommitdiff
path: root/schulung_tools/rootfs_basic/scripts/setup_nfs_server.sh
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2018-04-05 09:27:36 +0200
committerJohn Ogness <john.ogness@linutronix.de>2018-04-05 09:27:36 +0200
commit74f93d82fc36156602164b540349c1c83fe4e2b6 (patch)
treeec084c58eabb06b0538700c38e911a405c027d77 /schulung_tools/rootfs_basic/scripts/setup_nfs_server.sh
parent674363214075c751df862ae87a9cd5ab28194cce (diff)
add rootfs_basic scripts
These scripts are provided to participants after the training to allow them to quickly/easily reproduce the many steps of creating a simple root filesystem from scratch. These scripts also serve as an excellent reference for trainers to follow during the live excercises. Signed-off-by: John Ogness <john.ogness@linutronix.de>
Diffstat (limited to 'schulung_tools/rootfs_basic/scripts/setup_nfs_server.sh')
-rwxr-xr-xschulung_tools/rootfs_basic/scripts/setup_nfs_server.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/schulung_tools/rootfs_basic/scripts/setup_nfs_server.sh b/schulung_tools/rootfs_basic/scripts/setup_nfs_server.sh
new file mode 100755
index 0000000..6b7d7ee
--- /dev/null
+++ b/schulung_tools/rootfs_basic/scripts/setup_nfs_server.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -e
+
+ROOTDIR="`pwd`/nfsroot"
+
+echo "$ROOTDIR 127.0.0.1(rw,sync,no_subtree_check,no_root_squash,insecure)" | sudo tee -a /etc/exports
+# sudo rpcinfo
+sudo systemctl restart nfs-kernel-server.service
+# sudo exportfs -ra