Silent init

Alan Mizrahi alan+crux at mizrahi.com.ve
Wed Nov 14 01:06:30 UTC 2007


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.crux.nu/pipermail/crux/attachments/20071113/4aec1e2f/attachment.asc>


More information about the CRUX mailing list