From: Michael Tremer Date: Fri, 20 Nov 2009 10:37:13 +0000 (+0100) Subject: naoki: Add some more files to toolchain. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3c626598f8e0481ce9a77c87d61a8fc2a3446ef;p=ipfire-3.x.git naoki: Add some more files to toolchain. Add files to provide DNS resolving and add /etc/fstab and /etc/mtab. --- diff --git a/tools/naoki-functions b/tools/naoki-functions index be075abea..50f0622ce 100644 --- a/tools/naoki-functions +++ b/tools/naoki-functions @@ -64,13 +64,18 @@ function naoki_prepare() { mkdir -p \ ${BUILD_DIR} \ - ${BUILD_DIR}/{boot,root,tmp} \ + ${BUILD_DIR}/{boot,etc,root,tmp} \ ${BUILD_DIR}/{dev,proc,sys} \ ${BUILD_DIR}/{,usr/}{bin,lib,sbin} \ ${BUILD_DIR}/usr/src \ ${BUILD_DIR}/${BUILD_ROOT} \ ${BUILD_DIR}/${TOOLS_DIR} + touch ${BUILD_DIR}/etc/{fstab,mtab} + + # Configure dns resolving + cp -f /etc/resolv.conf /etc/hosts ${BUILD_DIR}/etc/ + local i for i in cache ccache pkgs src tools ${DIR_PACKAGES##*/}; do mkdir -p ${BASEDIR}/${i} ${BUILD_DIR}/usr/src/${i} 2>/dev/null @@ -79,6 +84,7 @@ function naoki_prepare() { mount --bind ${TOOLS_DIR} ${BUILD_DIR}/${TOOLS_DIR}/ # Mounting kernel fs + ## Maybe, it is not the best way to mount-bind the whole dev... for i in dev proc sys; do mount --bind /${i} ${BUILD_DIR}/${i} done