浏览代码

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

正在加载...
取消
保存