瀏覽代碼

[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 年之前
父節點
當前提交
b3b939c6ff
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      src/usr/autoboot.c

+ 1
- 0
src/usr/autoboot.c 查看文件

@@ -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 ) );

Loading…
取消
儲存