diff options
author | Christoph Fritz <chf.fritz@googlemail.com> | 2012-09-21 04:31:19 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-09-21 14:51:21 -0400 |
commit | 5e953778a2aab04929a5e7b69f53dc26e39b079e (patch) | |
tree | 7649e876436e4d2cc136bef282edb6554b8508aa /Documentation | |
parent | 42d94dcb68b939c72fded1b3974cd240723afa0c (diff) |
ipconfig: add nameserver IPs to kernel-parameter ip=
On small systems (e.g. embedded ones) IP addresses are often configured
by bootloaders and get assigned to kernel via parameter "ip=". If set to
"ip=dhcp", even nameserver entries from DHCP daemons are handled. These
entries exported in /proc/net/pnp are commonly linked by /etc/resolv.conf.
To configure nameservers for networks without DHCP, this patch adds option
<dns0-ip> and <dns1-ip> to kernel-parameter 'ip='.
Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
Tested-by: Jan Weitzel <j.weitzel@phytec.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/filesystems/nfs/nfsroot.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Documentation/filesystems/nfs/nfsroot.txt b/Documentation/filesystems/nfs/nfsroot.txt index ffdd9d866ad7..2d66ed688125 100644 --- a/Documentation/filesystems/nfs/nfsroot.txt +++ b/Documentation/filesystems/nfs/nfsroot.txt | |||
@@ -78,7 +78,8 @@ nfsroot=[<server-ip>:]<root-dir>[,<nfs-options>] | |||
78 | flags = hard, nointr, noposix, cto, ac | 78 | flags = hard, nointr, noposix, cto, ac |
79 | 79 | ||
80 | 80 | ||
81 | ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf> | 81 | ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf>: |
82 | <dns0-ip>:<dns1-ip> | ||
82 | 83 | ||
83 | This parameter tells the kernel how to configure IP addresses of devices | 84 | This parameter tells the kernel how to configure IP addresses of devices |
84 | and also how to set up the IP routing table. It was originally called | 85 | and also how to set up the IP routing table. It was originally called |
@@ -158,6 +159,13 @@ ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf> | |||
158 | 159 | ||
159 | Default: any | 160 | Default: any |
160 | 161 | ||
162 | <dns0-ip> IP address of first nameserver. | ||
163 | Value gets exported by /proc/net/pnp which is often linked | ||
164 | on embedded systems by /etc/resolv.conf. | ||
165 | |||
166 | <dns1-ip> IP address of secound nameserver. | ||
167 | Same as above. | ||
168 | |||
161 | 169 | ||
162 | nfsrootdebug | 170 | nfsrootdebug |
163 | 171 | ||