Weird bug about wildcard behavior in for statement

2014-05-31 Thread Z C
I am currently using grub version 2.02 beta 2 got from git In the grub command shell, if the first command I execute is * for i in /*; do echo $i; done* What I expect is the file/directory list of my $root partition. But the result is just /* itself Then if I execute the second command *for i

How to exit from linux kernel and return to then grub?

2014-05-17 Thread Z C
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