FHS F2.3: kernel-overlays + locpath under /var/cache/archr

Two more Class C bridges, same pattern as F2.1/F2.2:
- /var/cache/archr/kernel-overlays -> /storage/.cache/kernel-overlays
- /var/cache/archr/locpath -> /storage/.cache/locpath

Consumers flipped to the Arch-friendly path:
- busybox/scripts/kernel-overlays-setup: OVERLAY_CONFIG_DIR
- busybox/profile.d/10-locale.conf: LOCPATH
- wayland/util/foot/scripts/foot.sh: LOCPATH (ArchR override only)

Service files (locale.service, kernel-overlays tmpfiles.d) keep
addressing the /storage backing path because they are the layer that
creates the actual rw overlay dir; the bridge symlink points at it.

Top-level packages/wayland/util/foot/scripts/foot.sh is upstream
LibreELEC heritage and stays untouched; the ArchR override is the
file the runtime actually executes.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Douglas Teles
2026-06-23 15:54:46 -03:00
parent c370b0ca48
commit 61cbea372e
4 changed files with 8 additions and 4 deletions
@@ -1,5 +1,7 @@
# don't overwrite value set by Locale Kodi addon
if [ -z "${LOCPATH}" ]; then
export LANG="C.UTF-8"
export LOCPATH="/storage/.cache/locpath"
# FHS bridge: /var/cache/archr/locpath is a symlink installed by the
# archr meta-package pointing into /storage/.cache/locpath (rw overlay).
export LOCPATH="/var/cache/archr/locpath"
fi
+3 -1
View File
@@ -50,8 +50,10 @@ EOF
### FHS bridge symlinks: make Arch-standard cache locations resolve into
### the /storage overlay. Apps and inspection tools see /var/cache/<x>;
### writes land in /storage/.cache/<x> (rw overlay).
mkdir -p ${INSTALL}/var/cache
mkdir -p ${INSTALL}/var/cache/archr
ln -sf /storage/.cache/mesa_shader_cache ${INSTALL}/var/cache/mesa
ln -sf /storage/.cache/kernel-overlays ${INSTALL}/var/cache/archr/kernel-overlays
ln -sf /storage/.cache/locpath ${INSTALL}/var/cache/archr/locpath
}
post_install() {
@@ -4,7 +4,7 @@
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
SYSTEM_OVERLAYS_DIR=/usr/lib/kernel-overlays
OVERLAY_CONFIG_DIR=/storage/.cache/kernel-overlays
OVERLAY_CONFIG_DIR=/var/cache/archr/kernel-overlays
KVER=$(uname -r)
RUNTIME_DIR="/run/kernel-overlays"
MODULES_DIR="${RUNTIME_DIR}/modules/${KVER}"
@@ -12,7 +12,7 @@ if [ ! -f ${FOOT_CONFIG_DIR}/foot.ini ]; then
fi
if [ -z "${LOCPATH}" ]; then
export LOCPATH="/storage/.cache/locpath"
export LOCPATH="/var/cache/archr/locpath"
fi
/usr/bin/foot > ${FOOT_LOG_FILE} 2>&1