]> git.ipfire.org Git - thirdparty/dracut.git/commit
network/net-lib.sh: delete duplicated DNS items from "/etc/resolv.conf" 137/head
authorXunlei Pang <xlpang@redhat.com>
Tue, 26 Apr 2016 10:05:11 +0000 (18:05 +0800)
committerHarald Hoyer <harald@redhat.com>
Tue, 26 Apr 2016 11:03:30 +0000 (13:03 +0200)
commit4fa5c235a76c085f5958002826436ed9c40e5034
tree8ffcd1ce376bfa68a4b47454e2102b35d0e72f10
parentcf376023e6d0d4abd9816fa954bb917fc2557713
network/net-lib.sh: delete duplicated DNS items from "/etc/resolv.conf"

Users can pass the DNS information throught "nameserver=" cmdline,
there maybe duplicated inputs.

"/etc/resolv.conf" have some restrictions on the number of DNS items
effective, so make sure that this file contains no duplicated items.

We achieve this by simply making the file have no duplicated lines.

Signed-off-by: Xunlei Pang <xlpang@redhat.com>
modules.d/40network/module-setup.sh
modules.d/40network/net-lib.sh