[openwrt/openwrt] base-files: increase default system log size to 128 kB

LEDE Commits lede-commits at lists.infradead.org
Sat Oct 19 05:14:51 PDT 2024


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/3c76bed6a973539712d94f413f275ec37703d823

commit 3c76bed6a973539712d94f413f275ec37703d823
Author: Hannu Nyman <hannu.nyman at iki.fi>
AuthorDate: Thu Oct 17 20:33:36 2024 +0300

    base-files: increase default system log size to 128 kB
    
    Increase the default system log buffer size option
    in /etc/config/system from 64 kB to 128 kB.
    
    64 kB is barely enough for the boot items of a modern router
    with a few add-on packages, but any subsequent logging will
    quickly cause the early boot items to get overwritten in the
    round-robin log buffer. Double the buffer size to 128 kB.
    
    (Note: built-in default in ubox logd itself is still 16 kB)
    
    Signed-off-by: Hannu Nyman <hannu.nyman at iki.fi>
    Link: https://github.com/openwrt/openwrt/pull/16723
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 package/base-files/files/bin/config_generate | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/base-files/files/bin/config_generate b/package/base-files/files/bin/config_generate
index 9d1968ce20..ca40a62cd4 100755
--- a/package/base-files/files/bin/config_generate
+++ b/package/base-files/files/bin/config_generate
@@ -314,7 +314,7 @@ generate_static_system() {
 		set system. at system[-1].hostname='OpenWrt'
 		set system. at system[-1].timezone='UTC'
 		set system. at system[-1].ttylogin='0'
-		set system. at system[-1].log_size='64'
+		set system. at system[-1].log_size='128'
 		set system. at system[-1].urandom_seed='0'
 
 		delete system.ntp




More information about the lede-commits mailing list