[LEDE-DEV] [PATCH] base-files: change /var link from /tmp to tmp
Alexander Couzens
lynxis at fe80.eu
Thu Mar 15 11:06:59 PDT 2018
Some packages are already using $(1)/var on package install.
On multiuser systems this breaks the build when multiple
users build OpenWrt.
Signed-off-by: Alexander Couzens <lynxis at fe80.eu>
---
package/base-files/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index f4505d6843c4..37f0e1e2fd48 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -171,7 +171,7 @@ define Package/base-files/install
mkdir -p $(1)/root
$(LN) /proc/mounts $(1)/etc/mtab
rm -f $(1)/var
- $(LN) /tmp $(1)/var
+ $(LN) tmp $(1)/var
mkdir -p $(1)/etc
$(LN) /tmp/resolv.conf /tmp/TZ /tmp/localtime $(1)/etc/
--
2.16.2
More information about the Lede-dev
mailing list