]> git.proxmox.com Git - grub2.git/commitdiff
* docs/grub.texi (normal): New section.
authorColin Watson <cjwatson@ubuntu.com>
Tue, 12 Apr 2011 12:23:19 +0000 (13:23 +0100)
committerColin Watson <cjwatson@ubuntu.com>
Tue, 12 Apr 2011 12:23:19 +0000 (13:23 +0100)
(normal_exit): New section.
(Embedded configuration): Add reference to normal.
(GRUB only offers a rescue shell): Likewise.
* docs/grub-dev.texi (Error Handling): Fix typo.

ChangeLog
docs/grub-dev.texi
docs/grub.texi

index cf6fa18c9834363c7875e5d4ac9bdb8c903278ac..c1ee7cf9d3c1f60235a66afd5abf658695eb6e9e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-04-12  Colin Watson  <cjwatson@ubuntu.com>
+
+       * docs/grub.texi (normal): New section.
+       (normal_exit): New section.
+       (Embedded configuration): Add reference to normal.
+       (GRUB only offers a rescue shell): Likewise.
+       * docs/grub-dev.texi (Error Handling): Fix typo.
+
 2011-04-12  Colin Watson  <cjwatson@ubuntu.com>
 
        * NEWS: Drop obsolete entry about probe-only btrfs support.
index a45b8b1981e8e88ea543e072bff09a623cce4950..93d2bdb4dd63367a3892f86fe31ce894b382f5d8 100644 (file)
@@ -451,7 +451,7 @@ request. Instead, please subscribe to the mailing list, and communicate first
 @chapter Error Handling
 
 Error handling in GRUB 2 is based on exception handling model. As C language
-doesn't direcly support exceptions, exception handling behavior is emulated
+doesn't directly support exceptions, exception handling behavior is emulated
 in software. 
 
 When exception is raised, function must return to calling function. If calling
index 0c59975cdb8eb6d5b9f9da131de14f4cc4f51cae..8d2223fb4c38eaad165b4d78e83bb95f2c94af66 100644 (file)
@@ -1486,14 +1486,14 @@ reside anywhere on the file system, and may be removed after running
 @command{grub-mkimage}.
 
 After the embedded configuration file (if any) is executed, GRUB will load
-the @samp{normal} module, which will then read the real configuration file
-from @file{$prefix/grub.cfg}.  By this point, the @code{root} variable will
-also have been set to the root device name.  For example, @code{prefix}
-might be set to @samp{(hd0,1)/boot/grub}, and @code{root} might be set to
-@samp{hd0,1}.  Thus, in most cases, the embedded configuration file only
-needs to set the @code{prefix} and @code{root} variables, and then drop
-through to GRUB's normal processing.  A typical example of this might look
-like this:
+the @samp{normal} module (@pxref{normal}), which will then read the real
+configuration file from @file{$prefix/grub.cfg}.  By this point, the
+@code{root} variable will also have been set to the root device name.  For
+example, @code{prefix} might be set to @samp{(hd0,1)/boot/grub}, and
+@code{root} might be set to @samp{hd0,1}.  Thus, in most cases, the embedded
+configuration file only needs to set the @code{prefix} and @code{root}
+variables, and then drop through to GRUB's normal processing.  A typical
+example of this might look like this:
 
 @example
 @group
@@ -3089,6 +3089,8 @@ you forget a command, you can run the command @command{help}
 * load_env::                    Load variables from environment block
 * loopback::                    Make a device from a filesystem image
 * ls::                          List devices or files
+* normal::                      Enter normal mode
+* normal_exit::                 Exit from normal mode
 * parttool::                    Modify partition table entries
 * password::                    Set a clear-text password
 * password_pbkdf2::             Set a hashed password
@@ -3545,6 +3547,34 @@ name syntax}), then list the contents of that directory.
 @end deffn
 
 
+@node normal
+@subsection normal
+
+@deffn Command normal [file]
+Enter normal mode and display the GRUB menu.
+
+In normal mode, commands, filesystem modules, and cryptography modules are
+automatically loaded, and the full GRUB script parser is available.  Other
+modules may be explicitly loaded using @command{insmod} (@pxref{insmod}).
+
+If a @var{file} is given, then commands will be read from that file.
+Otherwise, they will be read from @file{$prefix/grub.cfg} if it exists.
+
+@command{normal} may be called from within normal mode, creating a nested
+environment.  It is more usual to use @command{configfile}
+(@pxref{configfile}) for this.
+@end deffn
+
+
+@node normal_exit
+@subsection normal_exit
+
+@deffn Command normal_exit
+Exit normal mode (@pxref{normal}).  If this instance of normal mode was not
+nested within another one, then return to rescue mode.
+@end deffn
+
+
 @node parttool
 @subsection parttool
 
@@ -4082,7 +4112,7 @@ GRUB's normal start-up procedure involves setting the @samp{prefix}
 environment variable to a value set in the core image by
 @command{grub-install}, setting the @samp{root} variable to match, loading
 the @samp{normal} module from the prefix, and running the @samp{normal}
-command.  This command is responsible for reading
+command (@pxref{normal}).  This command is responsible for reading
 @file{/boot/grub/grub.cfg}, running the menu, and doing all the useful
 things GRUB is supposed to do.