Buildroot: error copying resolv.conf from target_skeleton directory

Joseph M Dupre (AVAB Inc.) dupre at avab.com
Tue Oct 18 17:52:03 UTC 2005


I have replaced and added some files in 
buildroot/target/generic/target_skeleton/etc.  One of these files is 
'resolv.conf'.  When I do a make I get the following error:   

if [ -f "target/generic/skel.tar.gz" ] ; then \
	zcat target/generic/skel.tar.gz | tar -C 
/home/dupre/projects/acrosser/rootfs/buildroot/build_i486 -xf -; \
fi;
if [ -d "target/generic/target_skeleton" ] ; then \
	cp -a target/generic/target_skeleton/* 
/home/dupre/projects/acrosser/rootfs/buildroot/build_i486/root/; \
fi;
cp: cannot create regular file 
`/home/dupre/projects/acrosser/rootfs/buildroot/build_i486/root/etc/re
solv.conf': No such file or directory
make: *** 
[/home/dupre/projects/acrosser/rootfs/buildroot/build_i486/root] 
Error 1

It took me a while to figure out what was going on:  Inside 
skel.tar.gz is a link named root/etc/resolv.conf that points to 
/tmp/resolv.conf.  If /tmp/resolv.conf does not exist, the copy fails 
and buildroot exits.

Is there a particular reason why skel.tar.gz contains that link???

- Joe





More information about the uClibc mailing list