Skip to contentSkip to conversation

"GRUB Loading kernel..." message

DISCUSSION Isaac Dupree 3 participants 7 messages Jul 5, 2008 – Jul 6, 2008

lore
Share & tools
lore
#0 lore raw

I thought I remembered somewhere a discussion how the message
"GRUB Loading kernel"
is confusing, because it doesn't say what kernel it's loading, and grub loads lots of kernels (this message means that the "kernel" is a core part of GRUB, and the subject "GRUB" the message mentions is different: it's some early loading code.) There is an argument that "kernel" does not mean the same thing as "Linux kernel", which is quite right: that's why the message is not at all incorrect, just highly ambiguous. It seems like it should be "Loading GRUB kernel"
. Although, looking at the files, boot/i386/pc/boot.S outputs "GRUB " and boot/i386/pc/diskboot.S outputs "Loading kernel", so the parts actually mean different things: maybe it's important that it prints "GRUB " first in case it never prints anything else? perhaps there are other possible code-paths? In any case, then maybe it should say
"GRUB Loading GRUB kernel", or, "GRUB Loading itself" :-)
to preserve the usefulness and increase the clarity. (Albeit, someone who doesn't know how GRUB works might be confused by how it can be loading itself: it's actually one part of GRUB loading a bigger part of GRUB. But we'll never be able to properly explain that to a nontechnical person :-)

(Am I missing something, since this is my first time looking at GRUB code?)

-Isaac

#1 lore raw
Quoted 6 lines · Isaac Dupree

. Although, looking at the files, boot/i386/pc/boot.S outputs "GRUB " and boot/i386/pc/diskboot.S outputs "Loading kernel", so the parts actually mean different things: maybe it's important that it prints "GRUB " first in case it never prints anything else? perhaps there are other possible code-paths? In any case, then maybe it should say "GRUB Loading GRUB kernel", or, "GRUB Loading itself" :-)

Considering that diskboot.img is limited to 512 bytes, I'd rather go with "loading" without "kernel". The result would be "GRUB loading", which would look better than your proposals. The saved bytes could be used for some good purpose eventually.

Signature · 2 lines
Regards,
Pavel Roskin
#2 lore raw
Quoted 9 lines · Pavel Roskin
Quoted 2 lines · Isaac Dupree

. Although, looking at the files, boot/i386/pc/boot.S outputs "GRUB " and boot/i386/pc/diskboot.S outputs "Loading kernel", so the parts actually mean different things: maybe it's important that it prints "GRUB " first in case it never prints anything else? perhaps there are other possible code-paths? In any case, then maybe it should say "GRUB Loading GRUB kernel", or, "GRUB Loading itself" :-)

Considering that diskboot.img is limited to 512 bytes, I'd rather go with "loading" without "kernel". The result would be "GRUB loading", which would look better than your proposals. The saved bytes could be used for some good purpose eventually.

I like that wording: concise and clear (although maybe so concise that it gets hard for a user having a problem, to Google for it).

By the way, currently the "Loading" seems to have the first letter capitalized (I don't care either way)

-Isaac

#3 lore raw
In reply to Pavel Roskin
Quoted 10 lines · Pavel Roskin
Quoted 6 lines · Isaac Dupree

. Although, looking at the files, boot/i386/pc/boot.S outputs "GRUB " and boot/i386/pc/diskboot.S outputs "Loading kernel", so the parts actually mean different things: maybe it's important that it prints "GRUB " first in case it never prints anything else? perhaps there are other possible code-paths? In any case, then maybe it should say "GRUB Loading GRUB kernel", or, "GRUB Loading itself" :-)

Considering that diskboot.img is limited to 512 bytes,

But it currently fits, and we don't gain anything by saving space in that sector.

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What good is a phone call… if you are unable to speak?
(as seen on /.)
#4 lore raw
Quoted 10 lines · Robert Millan
Quoted 9 lines · Pavel Roskin
Quoted 6 lines · Isaac Dupree

. Although, looking at the files, boot/i386/pc/boot.S outputs "GRUB " and boot/i386/pc/diskboot.S outputs "Loading kernel", so the parts actually mean different things: maybe it's important that it prints "GRUB " first in case it never prints anything else? perhaps there are other possible code-paths? In any case, then maybe it should say "GRUB Loading GRUB kernel", or, "GRUB Loading itself" :-)

Quoted 4 lines
Quoted 1 line

Considering that diskboot.img is limited to 512 bytes,

But it currently fits, and we don't gain anything by saving space in that sector.

Anyway, "GRUB loading" sounds fine to me.

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What good is a phone call… if you are unable to speak?
(as seen on /.)
#5 lore raw
In reply to Isaac Dupree
Quoted 4 lines · Isaac Dupree

I thought I remembered somewhere a discussion how the message "GRUB Loading kernel"
is confusing, because it doesn't say what kernel it's loading, and grub loads lots of kernels

I think this is not accurate. GRUB loads payloads. It doesn't care if they're a standalone OS like invaders.elf or the kernel part of an OS that resides on disk/network/whatever.

Signature · 5 lines
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What good is a phone call… if you are unable to speak?
(as seen on /.)
#6 lore raw
Quoted 8 lines · Robert Millan
Quoted 3 lines · Isaac Dupree

I thought I remembered somewhere a discussion how the message
"GRUB Loading kernel"
is confusing, because it doesn't say what kernel it's loading, and grub loads lots of kernels

I think this is not accurate. GRUB loads payloads. It doesn't care if they're a standalone OS like invaders.elf or the kernel part of an OS that resides on disk/network/whatever.

okay, I'm getting pedantic, but that is very much from GRUB point-of-view; GRUB certainly does load payloads, but from non-GRUB point-of-view, those payloads are often also OS kernels. So if you know GRUB terminology, GRUB would never say it was loading a kernel when it was loading a payload, because it neither knows nor cares whether anyone else would call that payload a "kernel". Rather convincing. Although, it would still be as accurate for a user to say that "GRUB is loading linux kernel" as it would be, if I'm blindly eating food, for someone to say I'm eating a banana. But I don't care so much about philosophy, just that "GRUB Loading kernel" confuses lots of people and it seems we've found a just-as-good wording that doesn't :-)

Anyway, any change of the message vs. GRUB Legacy means that we can tell from the message whether it's GRUB1 or GRUB2 :-D

should I send a patch to change the message from "Loading kernel" to "Loading"?

-Isaac