diff --git a/scripts/create-fs.sh b/scripts/create-fs.sh index bd452ce0..d441a801 100755 --- a/scripts/create-fs.sh +++ b/scripts/create-fs.sh @@ -322,10 +322,6 @@ else fi fi -# create a useable default /etc/resolv.conf instead of the one from the build system -# it will usually be overwritten with something more useful via dhcp etc. -echo "nameserver 1.1.1.1" > ${BUILD_ROOT}/etc/resolv.conf - cd ${WORKDIR} umount ${BUILD_ROOT}/proc ${BUILD_ROOT}/sys ${BUILD_ROOT}/dev/pts ${BUILD_ROOT}/dev diff --git a/scripts/create-image.sh b/scripts/create-image.sh index 2f667560..d7bc05d9 100755 --- a/scripts/create-image.sh +++ b/scripts/create-image.sh @@ -428,6 +428,10 @@ if [ -f ${WORKDIR}/systems/${1}/finalize-chroot.sh ]; then rm -f ${MOUNT_POINT}/finalize-chroot.sh fi +# create a useable default /etc/resolv.conf instead of the one from the build system +# it will usually be overwritten with something more useful via dhcp etc. +echo "nameserver 1.1.1.1" > ${MOUNT_POINT}/etc/resolv.conf + # umount all the extra stuff mounted for chroot usage as we are done with chroots now umount ${MOUNT_POINT}/proc ${MOUNT_POINT}/sys ${MOUNT_POINT}/dev/pts ${MOUNT_POINT}/dev