[image] Add "--autofree" option

Allow images to be automatically freed after execution completes
(successfully or otherwise).

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2012-07-20 10:37:24 +01:00
parent 23b70323c7
commit d3c660b671
4 changed files with 38 additions and 14 deletions

View File

@@ -146,6 +146,8 @@ void imgstat ( struct image *image ) {
printf ( " [TRUSTED]" );
if ( image->flags & IMAGE_SELECTED )
printf ( " [SELECTED]" );
if ( image->flags & IMAGE_AUTO_UNREGISTER )
printf ( " [AUTOFREE]" );
if ( image->cmdline )
printf ( " \"%s\"", image->cmdline );
printf ( "\n" );