From: Michael Brown Date: Fri, 20 Jul 2012 11:37:16 +0000 (+0100) Subject: [image] Automatically free autobooted images X-Git-Tag: v1.20.1~1694 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3b939c6ff67eb108a331d48320ea1720a291937;p=thirdparty%2Fipxe.git [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 --- diff --git a/src/usr/autoboot.c b/src/usr/autoboot.c index da82f5e85..53f246ae5 100644 --- a/src/usr/autoboot.c +++ b/src/usr/autoboot.c @@ -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 ) );