[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Possible to redirect real init's message to netconsole?



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

Cheers,
-- 
Roger Shimizu, GMT +9 Tokyo
PGP/GPG: 17B3ACB1


Reply to: