LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-04-2007, 09:11 PM   #1
yolkmeister
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Rep: Reputation: 0
Suppress kernel messages at startup without using quiet switch


I have just compiled a custom 2.6.20.4 kernel for a specialized kernel that boots off of a tftp server (via PXE boot) to do ZENWorks imaging of operating systems for deployment of new computers. The kernel itself works perfectly for what I want it to do, but is more verbose than I would like it to be.

The problem - the kernel options that are passed are contained within a compressed file that requires a proprietary toolkit to change. The quiet option is not one of them, and I currently have no way to change this or pass the kernel any other options that are not currently specified.

The question - is there a way (possibly within the kernel itself) to suppress all the boot message when the kernel loads *without* passing boot options to it? I have searched and searched for a compile option, patch, anything that could do this but no luck so far. Does anyone have any insight on this? Thanks.
 
Old 04-05-2007, 07:21 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
Here’s a patch:
Code:
diff --git a/kernel/printk.c b/kernel/printk.c
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -42,7 +42,7 @@
 
 /* We show everything that is MORE important than this.. */
 #define MINIMUM_CONSOLE_LOGLEVEL 1 /* Minimum loglevel we let people use */
-#define DEFAULT_CONSOLE_LOGLEVEL 7 /* anything MORE serious than KERN_DEBUG */
+#define DEFAULT_CONSOLE_LOGLEVEL 5 /* anything MORE serious than KERN_DEBUG */
 
 DECLARE_WAIT_QUEUE_HEAD(log_wait);
 
Old 04-06-2007, 09:57 AM   #3
yolkmeister
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Changing the default loglevel will do exactly what I want it do. From what I've read I can also change it back after boot with dmesg if required. I appreciate the help. Thanks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
extra quiet kernel - how? lukebeales Linux - Software 2 06-17-2005 09:49 PM
Suppress startup notification in Gnome? Jimmy_C Linux - General 1 12-21-2003 12:38 PM
suppress warning messages h/w Programming 2 10-07-2003 02:56 PM
How to switch off the messages (acx100-Driver) raedt Linux - Networking 1 08-17-2003 10:47 AM
bash scripting - suppress error messages? brian0918 Programming 2 06-19-2003 11:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration