lede/package
Beginner 9b519e7747
base-files: add option to make /var persistent (#7719)
* base-files: add option to make /var persistent

In OpenWrt, /var is symlinked to /tmp by default. This is done to reduce
the amount of writes to the flash chip, which often have not the
greatest durability. As a result, things like DHCP or UPnP lease files,
are not persistent across reboots.

Since OpenWrt can run on devices with more durable storage, it makes
sense to have an option for a persistent /var. Add an option to make
/var persistent. When enabled, /var will no longer be symlinked to /tmp,
but /var/run will be symlink to /tmp/run, as it should contains only
files that should not be kept during reboot. The option is off by
default, to maintain the current behaviour.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

* base-files: fix option to make /var persistent

The option was initially named TARGET_ROOTFS_LN_VAR_TMP, and the check
was correct. When renaming the option to something more suitable, the
check was changed to check for n, but when an option is not set, it's
not n but empty. This results in the check always evaluating to false.
Fix the check by checking for y with ifneq.

Fixes: 57807f50ded6 ("base-files: add option to make /var persistent")

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>

Co-authored-by: Stijn Tintel <stijn@linux-ipv6.be>
2021-08-24 19:13:55 +08:00
..
base-files base-files: add option to make /var persistent (#7719) 2021-08-24 19:13:55 +08:00
boot ipq806x: add support for Arris RAC2V1A (#7680) 2021-08-20 01:36:28 +08:00
devel add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00
firmware ipq807x: add support for ZTE MF269 (#7713) 2021-08-22 01:27:48 +08:00
kernel ipq807x: add support for ZTE MF269 (#7713) 2021-08-22 01:27:48 +08:00
lean vsftpd-alt: update to 3.0.5 (#7720) 2021-08-23 15:08:39 +08:00
libs libpcap: update to 1.10.1 (#7636) 2021-08-10 10:40:51 +08:00
network firewall: update to git HEAD (#7682) 2021-08-17 23:30:36 +08:00
qca ramips: add Mediatek EIP93 Crypto Engine for MT7621 SoC 2021-07-28 10:25:30 +08:00
system selinux-policy: update to version 0.9 (#7712) 2021-08-23 15:09:33 +08:00
utils util-linux: update to 2.37 (#7427) 2021-07-19 12:50:07 +00:00
Makefile add kernel 5.10 support and sync with upstream 2021-06-14 18:30:08 +08:00