]> git.ipfire.org Git - thirdparty/dracut.git/commit
fix(dracut-logger.sh): this fixes the dlog_init check for /dev/log
authorBrian C. Lane <bcl@redhat.com>
Tue, 1 Nov 2022 17:06:20 +0000 (10:06 -0700)
committerLaszlo Gombos <laszlo.gombos@gmail.com>
Thu, 3 Nov 2022 03:49:47 +0000 (23:49 -0400)
commit6b592f581c1a5ec489acee95779867e0485770fd
treec6de79cba7ebf4e61c667548d3cdd6aa45fe58fc
parentcf31fcf804be4dc0fa31885f5185a59b6012cdf4
fix(dracut-logger.sh): this fixes the dlog_init check for /dev/log

The /dev/log check was not correct, it would continue working if
/dev/log was a broken symlink. This changes the logic to be more clear
-- /dev/log needs to be a socket, and writable, and logger needs to be
available. If any of those conditions fail, turn off syslog and only use
console logging.
dracut-logger.sh