mirror of
https://github.com/xcat2/xNBA.git
synced 2024-11-22 17:41:55 +00:00
[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>
This commit is contained in:
parent
5d3c368efb
commit
b3b939c6ff
@ -160,6 +160,7 @@ int uriboot ( struct uri *filename, struct uri *root_path, int drive,
|
||||
if ( filename ) {
|
||||
if ( ( rc = imgdownload ( filename, &image ) ) != 0 )
|
||||
goto err_download;
|
||||
image->flags |= IMAGE_AUTO_UNREGISTER;
|
||||
if ( ( rc = image_exec ( image ) ) != 0 ) {
|
||||
printf ( "Could not boot image: %s\n",
|
||||
strerror ( rc ) );
|
||||
|
Loading…
Reference in New Issue
Block a user