On Wed, 2016-02-03 at 01:50 +0900, Roger Shimizu wrote: > Dear initramfs-tools maintainer, > > By command "exec >/dev/kmsg 2>&1" in init, which was introduced by > commit 3acddc [0], kernel messages can all redirected to netconsole > with no problem. > > I want some bit more, that to redirect service start/stop messages > from sysvinit/systemd to netconsole as well. > > I already tried to replace ">${rootmnt}/dev/console" with > ">${rootmnt}/dev/kmsg" in the final block of "init" script, but with > no luck. > I'm now wondering whether it's possible under initramfs-tools. > Maybe the right way is to hack systemd/sysvinit? > > [0]: > https://anonscm.debian.org/cgit/kernel/initramfs-tools.git/commit/?id=3acddcce9763192ffd169b32a511542adf1282f2
run-init resets the standard error streams. You could try adding "-c /dev/kmsg" to the run-init command line. Ben. -- Ben Hutchings Life is what happens to you while you're busy making other plans. - John Lennon
signature.asc
Description: This is a digitally signed message part