diff options
author | Xi Ruoyao <xry111@xry111.site> | 2023-07-17 09:40:59 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@xry111.site> | 2023-07-17 09:40:59 +0800 |
commit | 870d24c5cb3ce12dc43e5b8f71aee84d74e73015 (patch) | |
tree | c1cc3c993fc58b492fd7fb1bfbbabd62007d462d /bootscripts | |
parent | 06610cefabc3abf7cf2504bab271224de52ab2b4 (diff) |
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...
Diffstat (limited to 'bootscripts')
-rw-r--r-- | bootscripts/lfs/init.d/udev | 2 |
1 files changed, 1 insertions, 1 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 |