Skip to contentSkip to conversation

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

DISCUSSION Paul Menzel 3 participants 3 messages Apr 5, 2013

lore
Share & tools
lore
#0 lore raw

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

        $ 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'.

Thanks,

Paul

#1 lore raw

В Fri, 05 Apr 2013 12:28:37 +0200
Paul Menzel <[email protected]> пишет:

Quoted 6 lines

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.

Quoted 21 lines
        $ 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

Quoted 7 lines

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.

Quoted 4 lines

Thanks,

Paul

#2 lore raw
In reply to Paul Menzel
Quoted 20 lines · Paul Menzel

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

        $ 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
        […]
Quoted 4 lines

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

Don't use -c, put grub.cfg on memdisk and add normal.

Quoted 21 lines

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'.

Thanks,

Paul

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel