Skip to content

Commit

Permalink
ensure that the symlink for /etc/hosts is not removed for the LXC
Browse files Browse the repository at this point in the history
platform so that in case rootfs is read-only a valid /etc/hosts file can
be generated in the /var tmpfs upon bootup. This should resolve issues
with incorrectly working DNS requests for "localhost" in case of an LXC
container setup.
  • Loading branch information
jens-maus committed Jun 20, 2024
1 parent 276cf29 commit f97433a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions buildroot-external/board/lxc/post-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ rm -rf "${TARGET_DIR}/etc/usb_modeswitch.d"
rm -f "${TARGET_DIR}/bin/checkBadBlocks.sh"
rm -f "${TARGET_DIR}/etc/sysctl.conf"

#Remove files managed by docker
rm "${TARGET_DIR}/etc/hosts"
#rm "${TARGET_DIR}/etc/resolv.conf"

# link VERSION in /boot on rootfs
mkdir -p "${TARGET_DIR}/boot"
ln -sf ../VERSION "${TARGET_DIR}/boot/VERSION"

0 comments on commit f97433a

Please sign in to comment.