Commit df3a3829 authored by Enrico Scholz's avatar Enrico Scholz

ELiTo/NFS: take default nfsroot from environment

Signed-off-by: Enrico Scholz's avatarEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
parent 69171f39
......@@ -168,6 +168,17 @@ config ROOT_NFS
Most people say N here.
config DEFAULT_ROOT_NFS_FROM_ENV
string
depends on ROOT_NFS
option env=DEFAULT_NFSROOT
config DEFAULT_ROOT_NFS
string
depends on ROOT_NFS
default DEFAULT_ROOT_NFS_FROM_ENV if DEFAULT_ROOT_NFS_FROM_ENV != ''
default ''
config NFS_FSCACHE
bool "Provide NFS client caching support"
depends on NFS_FS=m && FSCACHE || NFS_FS=y && FSCACHE=y
......
......@@ -132,6 +132,9 @@ static int __init nfs_root_setup(char *line)
{
ROOT_DEV = Root_NFS;
if (strcmp(line, "default") == 0)
line = CONFIG_DEFAULT_ROOT_NFS;
if (line[0] == '/' || line[0] == ',' || (line[0] >= '0' && line[0] <= '9')) {
strlcpy(nfs_root_parms, line, sizeof(nfs_root_parms));
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment