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...
This commit is contained in:
Xi Ruoyao 2023-07-17 09:40:59 +08:00
parent 06610cefab
commit 870d24c5cb
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -383,7 +383,7 @@
<!ENTITY less-fin-du "4.3 MB">
<!ENTITY less-fin-sbu "less than 0.1 SBU">
<!ENTITY lfs-bootscripts-version "20230715"> <!-- Scripts depend on this format -->
<!ENTITY lfs-bootscripts-version "20230716"> <!-- Scripts depend on this format -->
<!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB">
<!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.xz">
<!ENTITY lfs-bootscripts-md5 "BOOTSCRIPTS-MD5SUM">