Unable to Set $DNSSRVS

Thomas Lange lange at informatik.uni-koeln.de
Mon Nov 7 17:53:05 CET 2011


>>>>> On Sun, 06 Nov 2011 11:57:52 -0500, n43w79 <n43w79 at gmail.com> said:

    > And expect 
    > /srv/fai/nfsroot/live/filesystem.dir/usr/lib/fai/create_resolv_conf(Quote):

    >    for dnshost in $DNSSRVS ; do
    >      echo "nameserver $dnshost" >>/etc/resolv.conf
    >    done

    > to create /etc/resolv.conf like this:
    > ....
    > nameserver 192.168.1.254
    > nameserver 206.248.154.22
    > nameserver 206.248.154.170

    > Q1. What am I doing wrong?
Instead of echo ... >> use ainsl(1).
You must also use $target/etc/resolv.conf instead of /etc/resolv.conf

    > Q2. Also, how do I set DNSSRVS_1?
This is normally done by the script dhclient-perl, which splits the
value of the variable DNSSRV into multiple variables.

-- 
regards Thomas


More information about the linux-fai mailing list