diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-01-13 15:00:10 -0600 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-01-13 15:00:10 -0600 |
commit | b811adf065fd73487435299076f6e8d9e96444fc (patch) | |
tree | e606fc48faa97ea0300a059801830a35326981ed | |
parent | 6a1c7922b41d8059f6c8d94968fdb5b64b32689f (diff) |
on nfsroot link /etc/resolv.conf to /proc/net/pnp to fix dns resolving
-rw-r--r-- | package/base-files/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
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 |