diff options
author | Michael Brown <mcb30@ipxe.org> | 2015-08-21 16:28:33 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2015-08-21 16:32:02 +0100 |
commit | 4e03af8ec2d497e725566a91fd5c19dd604c18a6 (patch) | |
tree | d2ef3df8abce9768bb2d049e6c76cf683b6f266c /src/usr/autoboot.c | |
parent | abfe94a90ad72f4be2055f3ad21f09ab081cc250 (diff) | |
download | ipxe-4e03af8ec2d497e725566a91fd5c19dd604c18a6.zip ipxe-4e03af8ec2d497e725566a91fd5c19dd604c18a6.tar.gz ipxe-4e03af8ec2d497e725566a91fd5c19dd604c18a6.tar.bz2 |
[autoboot] Display image information as part of the default control flow
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>
Diffstat (limited to 'src/usr/autoboot.c')
-rw-r--r-- | src/usr/autoboot.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/usr/autoboot.c b/src/usr/autoboot.c index 6dbe25c..9125438 100644 --- a/src/usr/autoboot.c +++ b/src/usr/autoboot.c @@ -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", |