Skip to contentSkip to conversation

iPXE/Etherboot prompts twice for booting?

Qemu-devel Michael Tokarev 3 participants 4 messages Apr 16, 2011 – Apr 19, 2011

lore
Share & tools
lore
#0 lore raw

I'm playing with iPXE ROM images again, and see iPXE prompts two times during bootup. Once like
this: "Press Ctrl-B to configure", at early stage, even if -boot n is not selected. And second time when it actually tries to boot, like "Press Ctrl-B for the command line".

The same behavor happens with old Etherboot, with the exception that during init stage it tries to boot too but fails.

Any idea how to get rid of that?

Thanks!

/mjt

#1 lore raw
Quoted 7 lines · Michael Tokarev

I'm playing with iPXE ROM images again, and see iPXE prompts two times during bootup.  Once like
this: "Press Ctrl-B to configure", at early stage, even if -boot n is not selected.  And second time when it actually tries to boot, like "Press Ctrl-B for the command line".

Quoted 5 lines

The same behavor happens with old Etherboot, with the exception that during init stage it tries to boot too but fails.

Any idea how to get rid of that?

IIRC you need to #define BANNER_TIMEOUT 0 in src/config/general.h.

Stefan

#2 lore raw
Quoted 8 lines · Stefan Hajnoczi
Quoted 7 lines · Michael Tokarev

I'm playing with iPXE ROM images again, and see iPXE prompts two times during bootup. Once like
this: "Press Ctrl-B to configure", at early stage, even if -boot n is not selected. And second time when it actually tries to boot, like "Press Ctrl-B for the command line".

Quoted 7 lines
Quoted 5 lines

The same behavor happens with old Etherboot, with the exception that during init stage it tries to boot too but fails.

Any idea how to get rid of that?

IIRC you need to #define BANNER_TIMEOUT 0 in src/config/general.h.

I think src/local/config/general.h is the preferred location, which is what the script in my tree does and includes pre-built ipxe images:

https://github.com/awilliam/qemu/tree/ipxe

Alex

#3 lore raw
Quoted 13 lines · Alex Williamson
Quoted 12 lines · Stefan Hajnoczi
Quoted 11 lines · Michael Tokarev

I'm playing with iPXE ROM images again, and see iPXE prompts two times during bootup.  Once like
this: "Press Ctrl-B to configure", at early stage, even if -boot n is not selected.  And second time when it actually tries to boot, like "Press Ctrl-B for the command line".

The same behavor happens with old Etherboot, with the exception that during init stage it tries to boot too but fails.

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Any idea how to get rid of that?

IIRC you need to #define BANNER_TIMEOUT 0 in src/config/general.h.

I think src/local/config/general.h is the preferred location, which is what the script in my tree does and includes pre-built ipxe images:

Yeah, using the top-level config is just my bad habit. The point of local/ is to prevent conflicts if you update the code and to make git ignore your local changes.

Stefan