base-files: link /var to tmp instead of /tmp
authorYousong Zhou <yszhou4tech@gmail.com>
Sun, 5 Mar 2017 06:45:08 +0000 (14:45 +0800)
committerYousong Zhou <yszhou4tech@gmail.com>
Sun, 5 Mar 2017 09:23:46 +0000 (17:23 +0800)
To de-couple with host /tmp

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
package/base-files/Makefile

index 78c3dc9390cf58fde8483596563c2e6e5e500887..99a10ffba678ae7a84e9c87c33651992e2019999 100644 (file)
@@ -153,7 +153,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/