FAIBASE class

Rudy Gevaert rgevaert at elis.UGent.be
Mon Aug 29 10:08:54 CEST 2005


Hello,

I'm using the sarge version of FAI installing sarge machines.  This
mail is just a report that the FAIBASE/30-interace script that ships
with FAI has an error:

The line:

[ -s /tmp/etc/resolv.conf ] && cp -p /tmp/etc/resolv.conf $target/etc

Gives the error:

cp: cannot create regular file `/tmp/target/etc/resolv.conf': No such file or directory
fcopy: /fai/files/etc/resolv.conf is not a directory. Not copied.

This is because sarge systems use the resolvconf package.
Now /etc/resolv.conf is a symlink to /etc/resolvconf/run/resolv.conf

The line in the script should be:
[ -s /tmp/etc/resolv.conf ] && cp -p /tmp/etc/resolv.conf $target/etc/resolvconf/resolv.conf.d/base



-- 
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert                             e-mail: Rudy.Gevaert at UGent.be
Directie ICT, Afdeling Infrastructuur
Groep Systemen                                      tel: +32 9 264 4734
Universiteit Gent                                   fax: +32 9 264 4994
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie               www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --



More information about the linux-fai mailing list