Skip to content

Commit

Permalink
[autoboot] Display image information as part of the default control flow
Browse files Browse the repository at this point in the history
When booting without an embedded script, display the imgstat()
information immediately before executing the downloaded image.  This
allows potentially useful diagnostic information (such as the detected
image type) to be observed by the user without needing to enter the
iPXE shell and manually download the image.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Aug 21, 2015
1 parent abfe94a commit 4e03af8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/usr/autoboot.c
Expand Up @@ -178,6 +178,7 @@ int uriboot ( struct uri *filename, struct uri *root_path, int drive,
if ( filename ) {
if ( ( rc = imgdownload ( filename, 0, &image ) ) != 0 )
goto err_download;
imgstat ( image );
image->flags |= IMAGE_AUTO_UNREGISTER;
if ( ( rc = image_exec ( image ) ) != 0 ) {
printf ( "Could not boot image: %s\n",
Expand Down

0 comments on commit 4e03af8

Please sign in to comment.