grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to getting normal mode?


From: liu Aleaxander
Subject: How to getting normal mode?
Date: Sat, 28 Feb 2009 01:28:21 +0800

Hi, all.

I'm reading the grub source code. and found  i got no idea how the grub getting into the normal mode.

in file kern/main.c
/* Load the normal mode module.  */
  grub_load_normal_mode ();
 
  /* Enter the rescue mode.  */
  grub_enter_rescue_mode ();

I think the grub_load_normal_mode() function just will load the normal.mod if find. but i have no idea how to execute it even though the function's comment said execute the normal mode if possible.

As i excepted, the above function will not lead the grub getting into normal mode, so it execute the next function grub_enter_rescue_mode. Yeah, i have no doubt it wouldn't go there.

Then, we are in rescue mode. and in the function's entry, it also will try to getting into normal mode by invoke the function attemp_normal_mode.

while this function is simple too.  it just found the normal mode from the rescue command list, if found, execute it's cmd function. Yeah, that's clear, but the things are, there are no such normal cmd in the rescue command list, then how can the grub get into the normal mode? (finally, as i excepted , it got no preblem getting into rescue mode.)

I'm sorry to borther you for just a simple question.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]