Slashdot Mirror


Linus Says No To Annoying Boot Messages

Pants Ripper writes: "In a victory for all Linux users, Linus Torvalds declared jihad on annoying 'informational' kernel boot messages. I'm sure we'll all miss the inspirational 'spewtron driver 0.09 installed (C)2000 by Wardwick Extrusion' messages in our dmesgs." I've always thought those messages looked pretty interestingly verbose, but people want pretty boot-ups. And this Linus guy seems to know a lot about this "Lee-nuks," too.

17 of 286 comments (clear)

  1. How about the way FreeBSD does it? by jandrese · · Score: 5

    FreeBSD has an option (although it is disabled by default.) to display a boot screen (similar to windows). IIRC, the boot screen can be dumped for the regular boot message by a flag to the loader, or by simply pressing escape during the boot (unless your error is: atkbd0: Error failed to initalize keyboard...

    Really, what Linus seems to be annoyed at here are the excessivly verbose messages that some drivers like to print out (like I need to see the algorigthm benchmark each time I boot) that might drown out an important message by scrolling it off of the screen before you see it (although it should still be available through dmesg, just like the FreeBSD boot messages are still are even when you have the "graphical" boot.). The Linux boot sequence is getting a bit heavy on the pointless informational messages these days, so a bit of a pruning won't hurt too much.

    Down that path lies madness. On the other hand, the road to hell is paved with melting snowballs.

    --

    I read the internet for the articles.
  2. This is a good thing by Have+Blue · · Score: 5

    Attention, We-Want-Linux-On-The-Desktop crowd: Support this and help out, it is a big step in the right direction. To a consumer, diagnostic messages are confusing and pointless. Admit that Apple did something right, for once (interpret that as you will): the Mac OS, up to and including X, will never show cryptic messages or break out of the GUI unless you give it a direct order to do so (launch Terminal or Console, hold down key sequences during boot) or a fatal error occurs. This is a good thing, it makes the experience seamless and friendly. Remember that consumers don't care about what drivers got loaded when (and isn't improving the drivers themselves a much more important goal than improving the error messages?) and similar arcane knowledge of the computer's internals, and saying "learn it anyway because it's good for you" will not win you any friends or customers.

    1. Re:This is a good thing by sigwinch · · Score: 4
      Admit that Apple did something right, for once: the Mac OS, up to and including X, will never show cryptic messages or break out of the GUI unless you give it a direct order to do so or a fatal error occurs.
      You can get away with poor brittle engineering if you are willing to tightly restrict the hardware that is used. OS X runs on, what, a single CPU architecture and half-a-dozen machine variants? Linux runs on half-a-dozen architectures and tens of thousands of machine variants. It is *normal* for commodity PC hardware to randomly blow up and do weird things, and being able to handle it without training people to press special key combinations is *good*.
      This is a good thing, it makes the experience seamless and friendly. Remember that consumers don't care about what drivers got loaded when...
      Until some random driver wedges for 5 minutes during boot up or shut down, as it eventually will on commodity no-name hardware. If you can see a message for which thing is wedging, you are 99% of the way towards solving the problem. OTOH, with the Windows/Mac approach, the poor end-user will need a trip to the technician for a reformatting. Transparency and diagnosibility are Good Things.
      --

      --
      Kuro5hin.org: where the good times never end. ;-)

  3. how many people here actually *read* Linus's msg? by Lally+Singh · · Score: 5
    Linus was just saying that *NON-INFORMATIONAL* messages are just a waste, and that they shouldn't be done. Information related to DEBUGGING is logged. Error messages are still printed. Relax and get over it.

    --

    --
    Care about electronic freedom? Consider donating to the EFF!
  4. A very good move. by morven2 · · Score: 5

    As a longtime UNIX admin who's used many UNIX systems, I think this is a good thing. I don't mind text printing on startup, but Linux prints so much ABSOLUTE USELESS CRAP to screen.

    90% of them are ego-boosting messages by the authors of each chunk of the kernel. These are in particular what Linus seems to have an issue with.

    I don't think boot messages should be completely gotten rid of, but they should be put on a rigorous diet. Let's look at the way other Unices do it. FreeBSD, for example, prints stuff, but it's terse and professional looking. Same with Solaris.

    On Linux, the messages scroll so damn fast, especially on a speedy modern system, that you can't even read them. That's bad, folks. I can't even tell if the kernel is printing any error messages, because the credits messages scroll it so quick.

    Yes, I don't mind a kernel component telling me it's there and the hardware's functional, but don't be so verbose about it!

  5. Re:A quote from The Good Book by sharkey · · Score: 4

    You ought to pass that book on to the MS Access developers. Does this sound familiar?
    "You are about to modify 0 records. This action cannot be undone."

    The Outlook people could use some help, too:
    "This graphic does not do anything. For Help on an option, click tho question mark [?], and then click the option."

    --

    --

    --
    "Outlook not so good." That magic 8-ball knows everything! I'll ask about Exchange Server next.
  6. Need multiple boot message modes. by meldroc · · Score: 5

    This way, there would be several modes, selected by kernel parameters in the lilo.conf file or LILO prompt.

    1. Splash-screen mode. Puts a pretty picture on the screen, stays there until the system gives you a login prompt or (x|k|g)dm login screen. The user should be able to press escape to ditch the splash screen & go to concise mode if problems arise.
    2. Concise mode: Displays minimal information on bootup - kernel version, distribution name, machine name. Nothing else is printed unless something is wrong.
    3. Verbose mode: Shows everything you never wanted to know about Linux as it boots - handy for kernel debugging or fixing configuration problems.

    --

    Meldroc, Waster of Electrons
  7. A quote from The Good Book by Brento · · Score: 4

    "Unnecessary messages are pure evil."

    - Everett N. McKay, page 367
    Developing User Interfaces for Microsoft Windows
    (c) Copyright 1999

    --
    What's your damage, Heather?
  8. Maybe I should read it first by gmhowell · · Score: 4
    Just read it. Maybe others should:

    So let's simply disallow versions, author information, and "good status"
    messages, ok? For stuff that is useful for debugging (but that the driver
    doesn't _know_ is needed), use KERN_DEBUG, so that it doesn't actually end
    up printed on the screen normally.


    So, he's just talking about copyright notices and that sort of garbage. He's actually keeping the good stuff in. So, this makes sense. Must be a slow newsday, what with no Micro-Soft FUD to report.

    --
    Jesus was all right but his disciples were thick and ordinary. -John Lennon
  9. Re:No wonder you're not working with linux by gmhowell · · Score: 4

    Relying on dmesg to configure a kernel (like the person you replied to) is kinda like relying on the author/editor blurb at the top of a Slashdot story to give an accurate impression of the news (like the person you replied to).

    --
    Jesus was all right but his disciples were thick and ordinary. -John Lennon
  10. Re:Not *all* messages by Shotgun · · Score: 4

    Linus specifically said that the important kind of messages are the ones that are displayed when something isn't working properly,

    You see, the problem is that software often doesn't KNOW when something isn't working properly. The software cannot know unless the developer either:
    1)predicts every possible failure case or,
    2)checks the inputs at every function call (which will slow your 1000GHz Fitztanium to 8086 speeds)

    Version numbers are also important. If you show me your /var/log/messages and I happen to notice that you're running the 2yr old ReiserFS code with the security hole, I'll tell you and you will be happy. But because there isn't a problem, ReiserFS doesn't ever say anything and you get cracked.

    Bootup messages are a very important standard that has become an invaluable troubleshooting tool. Even know that something DOES work is good information when troubleshooting. Linus should leave it alone. If I don't wanna see "ReiserFS is brought to you by MP3.com", I'll either modify it (I do have the source), or I'll use IBM's JFS.

    --
    Aah, change is good. -- Rafiki
    Yeah, but it ain't easy. -- Simba
  11. Message classification by p3d0 · · Score: 4

    We need the messages printed at boot time to be classified. You can have success messages, failure messages, credits, etc. Then you could configure the system to display the kinds of messages you want to see.

    I don't know much about the innards of the kernel, but I suspect something like this already exists. Could it be used for boot messages? Perhaps it could be extended?
    --

    --
    Patrick Doyle
    I mod down every jackass who puts his moderation policy in his sig. Oh, wait a sec....
  12. Not *all* messages by PurpleBob · · Score: 4
    Some people seem to be confused as to which messages will be removed. The messages that Linus was specifically lashing out against were the kind that tell you the version number of every driver the kernel is loading - for example, from my dmesg, "Linux NET4.0 for Linux 2.4 - Based upon Swansea University Computer Society NET3.039". I really don't care. If something goes wrong with NET4.0, *then* I'd like to hear about it. If it's Swansea University's fault, then maybe I'd want to hear about them too. :P Another example is the famed "ReiserFS is brought to you by MP3.com" message.

    Linus specifically said that the important kind of messages are the ones that are displayed when something isn't working properly, so no more whining that you think those messages are going to disappear, okay?

    Moreso, some people seem to be under the delusion that the linked Slashdot article with the "pretty bootup" is related to what Linus said. No. Linux isn't saying anything at all about a graphical boot, and that graphical boot system is still hugely experimental anyway.
    --

    --
    Win dain a lotica, en vai tu ri silota
  13. Seems to me.... by Xibby · · Score: 4

    That what's being said is that the modules shouldn't be spitting out this information as part of their code, as modprobe could handle that function. It could then be turned on and off as needed. Makes sense to me, why does every kernel module need to have code in it to print out information when the software loading the modules could do it, it would then only be written once, could be configurable. (verbose level = X, or modprobe -v, modprobe -vv, modprobe -vvv, etc.)

    If it fails, print out a message "Module X failed to load. Noncritical error, continuing to load linux. Fix me if you dare."

    --
    I'm going to go back in my box and will think within the limits of my box: MS Sucks Linux Good I read too much Slashdot.
  14. It's all irrelevant. by Fizzlewhiff · · Score: 4

    Everyone knows we never have reboot our Linux boxen anyway. ('cept to add new hardware of course.)

    --

    'Same speed C but faster'
  15. textulike by Marcus+Brody · · Score: 4

    contacting host slashdot.org..... connected
    slashdot.org contacted.... waiting for reply
    downloading slashdot.org 10.5k/s
    document:done
    welcome marcus brody
    congratulations! you have moderator satatus...
    please go forth and moderate

    words speak a thousand pictures. so much so, we often take the information they contain for granted.

    what does some flying windows or clouds tell you exactly??
    well... if they freeze you know your computer has crashed.

  16. Re:So let me get this straight by Marcus+Brody · · Score: 5
    Linus is saying that MS was right in hiding bootup information from the user and masking it with a pretty picture?

    Linus: "Let's make it policy that we _never_ print out annoying messages that have no useful purpose for debugging or running the system, ok?"

    Dont worry - Linus isnt going all Mac on us! As ever he is making more sense than your average hacker. I know what OS I'm running - and which kernel version, and even what modules im using. but yes some of this information is occasionly useful, and these are the bits that should be left. Maybe then they might not scroll off the screen so fast that we never read them anyhow.