Clean up your LFS boot-time console messages
While some distros hide the kernel and init script messages during booting behind graphics to mesmerize me for those few seconds, I never stopped preferring the old fashioned kernel and init script message spew at boot time.
Did you notice in the transition from LFS v7.0 to v7.1 that what we see on the console screen changed a little? Now, after printing the init script's message to the left and the [ OK ] status to the far right, init-functions backs up the cursor and prints a green asterisk (SUCCESS_PREFIX) to the left of the message text. There are other colored asterisk PREFIX patterns for warnings and failures. I like it.
Anyway, here's what I'm driving at... Somebody (Beekmans, Lucas, Dubbs) went to the trouble to code those script variables in /lib/lsb/init-functions to pretty-up the console screen, but then the kernel comes along and scatters routine informational messages all throughout the pretty init script stuff. And it's mostly useless stuff, too. I mean, who needs to know that the ethernet interface is down before it goes up? I only need to know that it went up, and the pretty network init script message does that. Or, who needs to be reminded of the swap device name by the kernel at the expense of ruining the swap init script's simple message that the swap was activated? The result of this mix of kernel and init script messaging on the console is ugly IMO.
Here is how to do it. Add these lines to /etc/sysctl.conf...
P.S.: This is not new stuff and not the first LQ thread about it. But I didn't find any in the LFS sub-forum or any with very much explanation about the matter. That's what I wanted to add to the record. Mostly.
|All times are GMT -5. The time now is 08:37 PM.|