[image] Allow for zero embedded images
authorMichael Brown <mcb30@etherboot.org>
Tue, 24 Feb 2009 05:51:21 +0000 (05:51 +0000)
committerMichael Brown <mcb30@etherboot.org>
Tue, 24 Feb 2009 05:57:56 +0000 (05:57 +0000)
commit4f3bab1a55359a2623e098a6ed61e8d82145af77
tree9f12c983dd2846d5b5f2d0598d928db9add7c51b
parent43834f5d25273054679cb67ba7a5870f99b874b4
[image] Allow for zero embedded images

Having a default script containing

  #!gpxe
  autoboot

can cause problems when entering commands to load and start a kernel
manually; the default script image will still be present when the
kernel is started and so will be treated as an initrd.  It is possible
to work around this by typing "imgfree" before any other commands, but
this is counter-intuitive.

Fix by allowing the embedded image list to be empty (in which case we
just call autoboot()), and making this the default.

Reported by alkisg@gmail.com.
src/Makefile.housekeeping
src/core/main.c
src/hci/commands/image_cmd.c
src/image/default.gpxe [deleted file]
src/image/embedded.c
src/include/gpxe/image.h