base-files: add option to make /var persistent
[openwrt/openwrt.git] / config / Config-images.in
index 4a7f08824bd7b9c0ced50fa10282c8575cf5286a..92720fb84d506650267228ac631b474525aa93cb 100644 (file)
@@ -303,4 +303,12 @@ menu "Target Images"
                  it will be mounted by PARTUUID which makes the kernel find the
                  appropriate disk automatically.
 
+       config TARGET_ROOTFS_PERSIST_VAR
+               bool "Make /var persistent"
+               default n
+               help
+                 Do not symlink /var to /tmp, so that its content will persist
+                 across reboots. When enabled, /var/run will still be linked
+                 to /tmp/run.
+
 endmenu