]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
naoki: Add some more files to toolchain.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 20 Nov 2009 10:37:13 +0000 (11:37 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 20 Nov 2009 10:37:13 +0000 (11:37 +0100)
Add files to provide DNS resolving and
add /etc/fstab and /etc/mtab.

tools/naoki-functions

index be075abeaad499d9370ba0be559d769b893bf689..50f0622ce97485a443a7af9da18944fdc46b5267 100644 (file)
@@ -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