diff options
author | Michael Brown <mcb30@ipxe.org> | 2012-07-20 12:37:16 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2012-07-20 12:46:42 +0100 |
commit | b3b939c6ff67eb108a331d48320ea1720a291937 (patch) | |
tree | 8206784e32734c065b22cb29cba877bd7e2f4cfb /src/usr | |
parent | 5d3c368efbc23d0e85e7bb3fa20c3766bfafd88a (diff) | |
download | ipxe-b3b939c6ff67eb108a331d48320ea1720a291937.zip ipxe-b3b939c6ff67eb108a331d48320ea1720a291937.tar.gz ipxe-b3b939c6ff67eb108a331d48320ea1720a291937.tar.bz2 |
[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>
Diffstat (limited to 'src/usr')
-rw-r--r-- | src/usr/autoboot.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/usr/autoboot.c b/src/usr/autoboot.c index da82f5e..53f246a 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 ) ); |