From b811adf065fd73487435299076f6e8d9e96444fc Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 13 Jan 2015 15:00:10 -0600 Subject: on nfsroot link /etc/resolv.conf to /proc/net/pnp to fix dns resolving --- package/base-files/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'package/base-files') diff --git a/package/base-files/Makefile b/package/base-files/Makefile index 14c04cefa..b447b643b 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -6,7 +6,7 @@ include $(ADK_TOPDIR)/mk/rootfs.mk PKG_NAME:= base-files PKG_VERSION:= 1.1 -PKG_RELEASE:= 8 +PKG_RELEASE:= 9 PKG_SECTION:= base/apps PKG_DESCR:= basic files and scripts @@ -55,7 +55,11 @@ endif mkdir -p $(IDIR_BASE_FILES)/usr/{lib,bin} chmod 600 $(IDIR_BASE_FILES)/etc/shadow chmod 600 $(IDIR_BASE_FILES)/etc/network/interfaces +ifeq (${ADK_TARGET_ROOTFS_NFSROOT},y) + (cd $(IDIR_BASE_FILES)/etc; ln -sf ../proc/net/pnp resolv.conf) +else (cd $(IDIR_BASE_FILES)/etc; ln -sf ../tmp/resolv.conf .) +endif chmod 1777 ${IDIR_BASE_FILES}/tmp ln -sf ../proc/mounts $(IDIR_BASE_FILES)/etc/mtab rm -rf $(IDIR_BASE_FILES)/var -- cgit v1.2.3