Ver código fonte

[image] Automatically free autobooted images

Simplify the process of booting by ensuring that old images are not
left registered after an unsuccessful autoboot attempt.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 anos atrás
pai
commit
b3b939c6ff
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1
    0
      src/usr/autoboot.c

+ 1
- 0
src/usr/autoboot.c Ver arquivo

@@ -160,6 +160,7 @@ int uriboot ( struct uri *filename, struct uri *root_path, int drive,
160 160
 	if ( filename ) {
161 161
 		if ( ( rc = imgdownload ( filename, &image ) ) != 0 )
162 162
 			goto err_download;
163
+		image->flags |= IMAGE_AUTO_UNREGISTER;
163 164
 		if ( ( rc = image_exec ( image ) ) != 0 ) {
164 165
 			printf ( "Could not boot image: %s\n",
165 166
 				 strerror ( rc ) );

Carregando…
Cancelar
Salvar