Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kernel
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
phytec
vm016-mx8m
kernel
Commits
df3a3829
Commit
df3a3829
authored
Oct 17, 2013
by
Enrico Scholz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ELiTo/NFS: take default nfsroot from environment
Signed-off-by:
Enrico Scholz
<
enrico.scholz@sigma-chemnitz.de
>
parent
69171f39
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
fs/nfs/Kconfig
fs/nfs/Kconfig
+11
-0
fs/nfs/nfsroot.c
fs/nfs/nfsroot.c
+3
-0
No files found.
fs/nfs/Kconfig
View file @
df3a3829
...
...
@@ -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
...
...
fs/nfs/nfsroot.c
View file @
df3a3829
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment