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@fe80.eu>
master
Alexander Couzens 7 years ago
parent 1ef0be3e5b
commit 2b84f95f38
No known key found for this signature in database
GPG Key ID: C29E9DA6A0DF8604
  1. 2
      package/base-files/Makefile

@ -171,7 +171,7 @@ define Package/base-files/install
mkdir -p $(1)/root mkdir -p $(1)/root
$(LN) /proc/mounts $(1)/etc/mtab $(LN) /proc/mounts $(1)/etc/mtab
rm -f $(1)/var rm -f $(1)/var
$(LN) /tmp $(1)/var $(LN) tmp $(1)/var
mkdir -p $(1)/etc mkdir -p $(1)/etc
$(LN) /tmp/resolv.conf /tmp/TZ /tmp/localtime $(1)/etc/ $(LN) /tmp/resolv.conf /tmp/TZ /tmp/localtime $(1)/etc/

Loading…
Cancel
Save