summaryrefslogtreecommitdiffstats
path: root/src/usr
diff options
context:
space:
mode:
authorMichael Brown2012-07-20 11:37:24 +0200
committerMichael Brown2012-07-20 13:44:40 +0200
commitd3c660b6718c8d85b34d5c7ca8c4ed12659e1cc7 (patch)
treec2c20f097fc46b59a02a903186fc1f9c30fa89cc /src/usr
parent[libc] Add missing wchar.h header (diff)
downloadipxe-d3c660b6718c8d85b34d5c7ca8c4ed12659e1cc7.tar.gz
ipxe-d3c660b6718c8d85b34d5c7ca8c4ed12659e1cc7.tar.xz
ipxe-d3c660b6718c8d85b34d5c7ca8c4ed12659e1cc7.zip
[image] Add "--autofree" option
Allow images to be automatically freed after execution completes (successfully or otherwise). Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/usr')
-rw-r--r--src/usr/imgmgmt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/usr/imgmgmt.c b/src/usr/imgmgmt.c
index 2c74f486..ce3bc90f 100644
--- a/src/usr/imgmgmt.c
+++ b/src/usr/imgmgmt.c
@@ -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" );