summaryrefslogtreecommitdiffstats
path: root/defaultenv
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-01-04 15:31:41 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-01-04 15:31:43 +0100
commit5dc675ceedbfbe324cb7c53bdfa0ebad88225b95 (patch)
treea0904933a3d48c16b9a2b1117f9dc3785d801c28 /defaultenv
parent985bc4f2e150a999ce74f53bf8b8809b1aaed808 (diff)
downloadbarebox-5dc675ceedbfbe324cb7c53bdfa0ebad88225b95.tar.gz
defaultenv: Pass serverip to nfsroot string
This is necessary to allow overwriting the NFS server Linux boots from. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'defaultenv')
-rw-r--r--defaultenv/defaultenv-2-base/boot/net2
1 files changed, 1 insertions, 1 deletions
diff --git a/defaultenv/defaultenv-2-base/boot/net b/defaultenv/defaultenv-2-base/boot/net
index aaa5394..840e9fc 100644
--- a/defaultenv/defaultenv-2-base/boot/net
+++ b/defaultenv/defaultenv-2-base/boot/net
@@ -9,7 +9,7 @@ if [ -f "${oftree}" ]; then
global.bootm.oftree="$oftree"
fi
-nfsroot="/home/${global.user}/nfsroot/${global.hostname}"
+nfsroot="${global.net.server}:/home/${global.user}/nfsroot/${global.hostname}"
ip_route_get -b ${global.net.server} global.linux.bootargs.dyn.ip