From f97433a6a5512d7e22c514eb4f4fec5707e5ab7c Mon Sep 17 00:00:00 2001 From: Jens Maus Date: Thu, 20 Jun 2024 17:40:38 +0200 Subject: [PATCH] ensure that the symlink for /etc/hosts is not removed for the LXC 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. --- buildroot-external/board/lxc/post-build.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/buildroot-external/board/lxc/post-build.sh b/buildroot-external/board/lxc/post-build.sh index ec04d0a546..16f2348005 100755 --- a/buildroot-external/board/lxc/post-build.sh +++ b/buildroot-external/board/lxc/post-build.sh @@ -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"