]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[autoboot] Display image information as part of the default control flow
authorMichael Brown <mcb30@ipxe.org>
Fri, 21 Aug 2015 15:28:33 +0000 (16:28 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 21 Aug 2015 15:32:02 +0000 (16:32 +0100)
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>
src/usr/autoboot.c

index 6dbe25ca492880347de99c3b91a0270993af914a..912543828aead8e2523c34524aa3e666f7b622d1 100644 (file)
@@ -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",