Hi there all,... Anyone got any ideas on how to silence the "INIT: Entering runlevel: 2" output during system boot? I want to clean up the system boot logs (via serial console) to only include the output of my init scripts,... any suggestions? Ciao ciao Ross
El Mié 07 Nov 2007, Ross Cameron escribió:
Hi there all,...
Anyone got any ideas on how to silence the "INIT: Entering runlevel: 2" output during system boot?
I want to clean up the system boot logs (via serial console) to only include the output of my init scripts,... any suggestions?
Well, first of all I hope you know about the "quiet" parameter that shuts up the kernel. To silence init, you'll have to patch the source: --- sysvinit-2.86/src/init.c.orig 2007-11-13 20:59:36.778419894 -0400 +++ sysvinit-2.86/src/init.c 2007-11-13 21:00:50.756134130 -0400 @@ -2222,7 +2222,6 @@ break; } if (loglevel > 0) { - initlog(L_VB, "Entering runlevel: %c", runlevel); write_utmp_wtmp("runlevel", "~~", runlevel + 256 * oldlevel, RUN_LVL, "~"); thislevel = runlevel; prevlevel = oldlevel; Alternatively, you can try out other init alternatives (such as initng, cinit, etc), or you can just ask the king of spain for some help ;) -- Alan
On Nov 14, 2007 3:06 AM, Alan Mizrahi <alan+crux@mizrahi.com.ve> wrote:
Well, first of all I hope you know about the "quiet" parameter that shuts up the kernel. Yes I've been using this for a while, but I'd like the system to be even more silent on boot.
To silence init, you'll have to patch the source:
--- sysvinit-2.86/src/init.c.orig 2007-11-13 20:59:36.778419894 -0400 +++ sysvinit-2.86/src/init.c 2007-11-13 21:00:50.756134130 -0400 @@ -2222,7 +2222,6 @@ break; } if (loglevel > 0) { - initlog(L_VB, "Entering runlevel: %c", runlevel); write_utmp_wtmp("runlevel", "~~", runlevel + 256 * oldlevel, RUN_LVL, "~"); thislevel = runlevel; prevlevel = oldlevel; Did you write this patch? If so do you mind if I use it under the same license as sysvinit?
Alternatively, you can try out other init alternatives (such as initng, cinit, etc), or you can just ask the king of spain for some help ;) I've been toying with the idea of trying other inits aswell, but I like sysvinit.
To silence init, you'll have to patch the source:
--- sysvinit-2.86/src/init.c.orig 2007-11-13 20:59:36.778419894 -0400 +++ sysvinit-2.86/src/init.c 2007-11-13 21:00:50.756134130 -0400 @@ -2222,7 +2222,6 @@ break; } if (loglevel > 0) { - initlog(L_VB, "Entering runlevel: %c", runlevel); write_utmp_wtmp("runlevel", "~~", runlevel + 256 * oldlevel, RUN_LVL, "~"); thislevel = runlevel; prevlevel = oldlevel;
Did you write this patch? If so do you mind if I use it under the same license as sysvinit?
Yes I wrote it, you can do whatever you want with it. -- Alan
participants (2)
-
Alan Mizrahi
-
Ross Cameron