syslog: log kernel message to kern.log

note config/etc/* is copied through lfs/stage2
so changes made in config/etc/* requires to
rm stage2 build log to rebuild stage2.

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
This commit is contained in:
Vincent Li
2025-04-01 17:40:58 -07:00
parent 245634dacd
commit 967a0319b4
3 changed files with 5 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.* /dev/console
kern.* -/var/log/kern.log
# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!

View File

@@ -6,3 +6,4 @@ usr/sbin/syslogd
#usr/share/man/man8/syslogd.8
var/log/dhcpcd.log
var/log/messages
var/log/kern.log

View File

@@ -76,8 +76,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
cd $(DIR_APP) && make $(MAKETUNING)
cd $(DIR_APP) && make install
touch /var/log/{dhcpcd.log,messages}
chmod 664 /var/log/{dhcpcd.log,messages}
chown 0:105 /var/log/{dhcpcd.log,messages}
touch /var/log/{dhcpcd.log,messages,kern.log}
chmod 664 /var/log/{dhcpcd.log,messages,kern.log}
chown 0:105 /var/log/{dhcpcd.log,messages,kern.log}
@rm -rf $(DIR_APP)
@$(POSTBUILD)