summaryrefslogtreecommitdiffstats
path: root/defaultenv
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2016-03-23 10:17:09 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-04-08 08:11:47 +0200
commitb31b7cf7e8b64267c43130b3b9621f4243ac9c0c (patch)
treeec96e8be36a1289e2fd29499c09c19e97aaa6061 /defaultenv
parent2096b4f8a03033fa70f15c7754c1fea8ebfa50cc (diff)
downloadbarebox-b31b7cf7e8b64267c43130b3b9621f4243ac9c0c.tar.gz
defaultenv-2: add automount for nfs
Automatically mount the path that is also used for net booting by default to /mnt/nfs. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'defaultenv')
-rw-r--r--defaultenv/defaultenv-2-base/init/automount8
1 files changed, 4 insertions, 4 deletions
diff --git a/defaultenv/defaultenv-2-base/init/automount b/defaultenv/defaultenv-2-base/init/automount
index fe56d92..fd1f5a6 100644
--- a/defaultenv/defaultenv-2-base/init/automount
+++ b/defaultenv/defaultenv-2-base/init/automount
@@ -10,11 +10,11 @@ fi
mkdir -p /mnt/tftp
automount /mnt/tftp 'ifup eth0 && mount -t tftp $eth0.serverip /mnt/tftp'
-# automount nfs server example
+# automount nfs server's nfsroot
+
+mkdir -p /mnt/nfs
+automount /mnt/nfs 'ifup eth0 && mount -t nfs ${eth0.serverip}:/home/${global.user}/nfsroot/${global.hostname} /mnt/nfs'
-#nfshost=somehost
-#mkdir -p /mnt/${nfshost}
-#automount /mnt/$nfshost "ifup eth0 && mount -t nfs ${nfshost}:/tftpboot /mnt/${nfshost}"
# FAT on usb disk example