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

13.3.20 kernel

— Command: kernel [--type=type] [--no-mem-option] file ...

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. This option is implied for Linux kernels 2.4.18 and newer.