openwrt-mirror/package/system
Daniel F. Dickinson 6ef0a35bb1 ubox: fix logging to external filesystem
As described in #13873, from 23.05.0 onwards logging to a file on an
external filesystem fails under some conditions.

This occurs because the log initscript had code added to prevent start
logging to an external filesystem on boot, and added a trigger to start
said logging when the external filesystem gets mounted.

The issue is that for filesystems mount with fstab uci, the fstab
scripts runs at START=11, while log runs at START=12, which means the
external filesystem may already be mounted by the time the log initscript
runs. Since the external filesystem is already mounted it does not
trigger a hotplug event to trigger the trigger to start logging. This
combination means the logging never automatically starts when the log
file is on an external filesystem.

We therefore add a check for the presence of a mounted filesystem when
the log file is being sent to an fstab mounted filesystem. If the
filesystem is mounted, we don't skip starting logging during boot.

If the filesystem is not mounted then file logging is not started and
the trigger will start the logging when the filesystem is mounted.

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
[improved commit message]
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2025-03-22 12:03:12 +00:00
..
apk apk: backport patch fixing broken apk update with wget fetch 2025-03-04 01:03:10 +01:00
ca-certificates ca-certificates: add missing license information 2024-03-21 21:44:53 +01:00
fstools fstools: update to latest HEAD 2024-12-02 14:43:09 +01:00
fwtool treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
gpio-cdev/nu801 nu801: Mark as nonshared to build in step 1 2024-11-04 21:20:37 +01:00
iucode-tool packages: refresh patches 2024-05-31 11:30:06 +02:00
mtd mtd: check the return value of malloc and pread 2024-12-31 17:44:10 +01:00
openwrt-keyring openwrt-keyring: apk: use just snapshot key explicitly 2024-11-25 12:20:59 +01:00
opkg build: remove broken dependency of metadata on toplevel .config variables 2024-11-11 19:53:43 +01:00
procd procd: update to Git HEAD (2025-03-13) 2025-03-13 11:23:03 +01:00
refpolicy packages: refresh patches 2024-05-31 11:30:06 +02:00
rpcd rpcd: update to Git HEAD (2024-12-02) 2024-12-02 12:25:02 +01:00
selinux-policy selinux-policy: fix PKG_MIRROR_HASH after update to v2.6 2025-03-16 08:29:16 +01:00
ubox ubox: fix logging to external filesystem 2025-03-22 12:03:12 +00:00
ubus ubus: update to Git HEAD (2025-01-02) 2025-01-02 14:08:59 +01:00
ucert treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
uci uci: update to Git HEAD (2025-01-20) 2025-01-20 22:17:23 +01:00
urandom-seed treewide: disable QUILT refresh for unsupported packages 2023-10-20 16:13:13 +02:00
urngd treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
usign treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
zram-swap treewide: replace AUTORELEASE with real PKG_RELEASE 2023-05-18 11:35:29 +02:00