Node:kernel, Next:, Previous:ioprobe, Up:Command-line and menu entry commands



kernel

kernel [--type=type] [--no-mem-option] file ... Command
Attempt to load the primary boot image (Multiboot a.out or ELF, Linux zImage or bzImage, FreeBSD a.out, NetBSD a.out, etc.) from file. The rest of the line is passed verbatim as the kernel command-line. Any modules must be reloaded after using this command.

This command also accepts the option --type so that you can specify the kernel type of file explicitly. The argument type must be one of these: netbsd, freebsd, openbsd, linux, biglinux, and multiboot. However, you need to specify it only if you want to load a NetBSD ELF kernel, because GRUB can automatically determine a kernel type in the other cases, quite safely.

The option --no-mem-option is effective only for Linux. If the option is specified, GRUB doesn't pass the option mem= to the kernel.