openwrt / luci

LuCI - OpenWrt Configuration Interface
Apache License 2.0
6.41k stars 2.54k forks source link

luci-mod-status: should not use /var/lib/luci-bwc but /tmp/luci-bwc #7413

Open M95D opened 1 day ago

M95D commented 1 day ago

Is there an existing issue for this?

screenshots or captures

No response

Actual behaviour

Luci-bwc stores data in /var/lib/luci-bwc. Some users prefer a permanent /var. That's usually on a USB stick or router's flash. Writing there increases wear.

Expected behaviour

Luci-bwc should write to /tmp/luci-bwc instead.

Steps to reproduce

No need.

Additional Information

NAME="OpenWrt"
VERSION="SNAPSHOT"
ID="openwrt"
ID_LIKE="lede openwrt"
PRETTY_NAME="OpenWrt SNAPSHOT"
VERSION_ID="snapshot"
HOME_URL="https://openwrt.org/"
BUG_URL="https://bugs.openwrt.org/"
SUPPORT_URL="https://forum.openwrt.org/"
BUILD_ID="r28116+17-cd92cbddf8"
OPENWRT_BOARD="mvebu/cortexa9"
OPENWRT_ARCH="arm_cortex-a9_vfpv3"
OPENWRT_TAINTS="no-all busybox"
OPENWRT_DEVICE_MANUFACTURER="OpenWrt"
OPENWRT_DEVICE_MANUFACTURER_URL="https://openwrt.org/"
OPENWRT_DEVICE_PRODUCT="Generic"
OPENWRT_DEVICE_REVISION="v0"
OPENWRT_RELEASE="OpenWrt SNAPSHOT r28116+17-cd92cbddf8"
OPENWRT_BUILD_DATE="1731864854"

What browsers do you see the problem on?

No response

Relevant log output

No response

systemcrash commented 1 day ago

Reasonable, although it won't survive reboots. @jow- ?

M95D commented 1 day ago

What reason is there for it to survive reboots? In fact, why not clear it when luci-bwc exits? It would free tmpfs memory.