Skip to content

Commit

Permalink
scripts: do resolv.conf in create-image.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
hexdump0815 committed Sep 10, 2023
1 parent cff9022 commit 53b4711
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions scripts/create-fs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions scripts/create-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 53b4711

Please # to comment.