Procházet zdrojové kódy

[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>
tags/v1.20.1
Michael Brown před 10 roky
rodič
revize
4e03af8ec2
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1
    0
      src/usr/autoboot.c

+ 1
- 0
src/usr/autoboot.c Zobrazit soubor

178
 	if ( filename ) {
178
 	if ( filename ) {
179
 		if ( ( rc = imgdownload ( filename, 0, &image ) ) != 0 )
179
 		if ( ( rc = imgdownload ( filename, 0, &image ) ) != 0 )
180
 			goto err_download;
180
 			goto err_download;
181
+		imgstat ( image );
181
 		image->flags |= IMAGE_AUTO_UNREGISTER;
182
 		image->flags |= IMAGE_AUTO_UNREGISTER;
182
 		if ( ( rc = image_exec ( image ) ) != 0 ) {
183
 		if ( ( rc = image_exec ( image ) ) != 0 ) {
183
 			printf ( "Could not boot image: %s\n",
184
 			printf ( "Could not boot image: %s\n",

Načítá se…
Zrušit
Uložit