]> code.ossystems Code Review - openembedded-core.git/commit
initramfs-framework: fix boothang when console=null
authorStefan Eichenberger <stefan.eichenberger@toradex.com>
Fri, 13 Mar 2020 11:09:07 +0000 (12:09 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 13 Mar 2020 13:35:58 +0000 (13:35 +0000)
commitdd6ee0b06cd8df6204cf600050516d15172302ea
treea9fa79684cfdcc57815cbdd487efa40168acbf9c
parent287123a9562e08cd97a4ebfd380508432654324b
initramfs-framework: fix boothang when console=null

If console=null systemd-udevd throws an assertion which prevents the
system from booting. This patch redirects stdin, stdout and stderr to
/dev/null in case that the console can't be opened so that udevd still
boots.

A systemd issue was reported here. However, they will not fix this
specific use-case:
https://github.com/systemd/systemd/issues/13332

Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/initrdscripts/initramfs-framework/udev