[openwrt/openwrt] base-files: change /var link from /tmp to tmp
LEDE Commits
lede-commits at lists.infradead.org
Thu Apr 5 02:49:44 PDT 2018
lynxis pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/2b84f95f382f3e1043d17b541d6b1f6278861ad7
commit 2b84f95f382f3e1043d17b541d6b1f6278861ad7
Author: Alexander Couzens <lynxis at fe80.eu>
AuthorDate: Thu Mar 15 19:06:59 2018 +0100
base-files: change /var link from /tmp to tmp
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 f4505d6..37f0e1e 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/
More information about the lede-commits
mailing list