From 870d24c5cb3ce12dc43e5b8f71aee84d74e73015 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Mon, 17 Jul 2023 09:40:59 +0800 Subject: [PATCH] bootscripts: udev: Set SYSTEMD_LOG_TARGET=kmsg for udevd This makes udevd send log entries to kmsg buffer and sysklogd will pick them up. Ideally we should use "syslog" here, but at the time udevd starts, sysklogd has not started yet and /dev/log does not exist. So udevd cannot open /dev/log and it will still use stderr as a fallback. We cannot make udevd depending on sysklogd either, because it would cause a circular dependency... --- bootscripts/lfs/init.d/udev | 2 +- packages.ent | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bootscripts/lfs/init.d/udev b/bootscripts/lfs/init.d/udev index 612685af7..f7d4b9bff 100644 --- a/bootscripts/lfs/init.d/udev +++ b/bootscripts/lfs/init.d/udev @@ -45,7 +45,7 @@ case "${1}" in # Start the udev daemon to continually watch for, and act on, # uevents - /sbin/udevd --daemon + SYSTEMD_LOG_TARGET=kmsg /sbin/udevd --daemon # Now traverse /sys in order to "coldplug" devices that have # already been discovered diff --git a/packages.ent b/packages.ent index ab075f7a4..8fd962d0e 100644 --- a/packages.ent +++ b/packages.ent @@ -383,7 +383,7 @@ - +