grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* How to exit from linux kernel and return to then grub?
@ 2014-05-18  5:33 Z C
  2014-05-18 14:43 ` Lennart Sorensen
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Z C @ 2014-05-18  5:33 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 867 bytes --]

If I boot into a linux kernel using a grub command like "linux /vmlinuz;
inirtd /initrd; boot", how do I shutdown linux itself (but do not power off
or reboot the computer hardware) and return back to the grub directly?

What I meant is something equivalent to the "exit" command in most shells:
If you are within one shell and you enter another shell, then if you want
to quit the second shell and return back to the first shell, just simply
type exit. All env variables and commands you previous typed in the first
shell are completely intact.

Suppose I am now in the grub shell, and then I boot into a tiny linux
kernel, say, a busybox shell, then what can I do to exit the second shell
(i.e. busybox shell) and return to the first shell (i.e. grub shell)? Of
course I can enter the grub shell again by simply rebooting the hardware,
but this is not what I want.

[-- Attachment #2: Type: text/html, Size: 969 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-05-18 17:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-18  5:33 How to exit from linux kernel and return to then grub? Z C
2014-05-18 14:43 ` Lennart Sorensen
2014-05-18 17:16 ` SevenBits
2014-05-18 17:46   ` Vladimir 'φ-coder/phcoder' Serbinenko
2014-05-18 17:52     ` SevenBits
2014-05-18 17:23 ` SevenBits
2014-05-18 17:59 ` Chris Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).