grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I find out what module is needed for a command?


From: Andrey Borzenkov
Subject: Re: How do I find out what module is needed for a command?
Date: Fri, 5 Apr 2013 15:08:08 +0400

В Fri, 05 Apr 2013 12:28:37 +0200
Paul Menzel <address@hidden> пишет:

> Dear GRUB developers,
> 
> 
> is there a program/script, which module I need to load to get a certain
> command? Using my distribution `/boot/grub/grub.cfg`
> 

/usr/lib/grub/i386-pc/command.lst

replace i386-pc with your platform. 

>         $ more /boot/grub/grub.cfg
>         […]
>         if [ -s $prefix/grubenv ]; then
>           load_env
>         fi
>         set default="1>Debian GNU/Linux, with Linux 3.2.0-4-686-pae"
> 
>         if [ x"${feature_menuentry_id}" = xy ]; then
>           menuentry_id_option="--id"
>         else
>           menuentry_id_option=""
>         fi
>         […]
> 
> in my GRUB payload for coreboot, created with
> 
>         src/grub/grub-core $ ../grub-mkimage -d . -c grub.cfg -O 
> i386-coreboot -o ../../grub2.elf memdisk tar ehci ohci uhci usb_keyboard 
> serial all_video terminal -m ../memdisk.tar
> 
> I currently get the following (excerpt) printed to the monitor/serial
> line
> 
>         Unknown command `if'.
>         Unknown command `load_env'.
>         Unknown command `fi'.
>         Unknown command `if'.
>         Unknown command `else'.
>         Unknown command `fi'.
> 

You need to load "normal" module and enter normal mode.

> 
> Thanks,
> 
> Paul

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]