]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[image] Simplify image management commands and internal API
authorMichael Brown <mcb30@ipxe.org>
Sat, 24 Mar 2012 01:16:37 +0000 (01:16 +0000)
committerMichael Brown <mcb30@ipxe.org>
Sat, 24 Mar 2012 23:12:04 +0000 (23:12 +0000)
commit1c127a696215bd75917c3ba836c2db11636b3ffb
treebd883060a15bfae71aef090481f9ea67d4fb43bc
parent4766b1455f590760af778262be1fe2963a1549a1
[image] Simplify image management commands and internal API

Remove the name, cmdline, and action parameters from imgdownload() and
imgdownload_string().  These functions now simply download and return
an image.

Add the function imgacquire(), which will interpret a "name or URI
string" parameter and return either an existing image or a newly
downloaded image.

Use imgacquire() to merge similar image-management commands that
currently differ only by whether they take the name of an existing
image or the URI of a new image to download.  For example, "chain" and
"imgexec" can now be merged.

Extend imgstat and imgfree commands to take an optional list of
images.

Remove the arbitrary restriction on the length of image names.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
12 files changed:
src/arch/i386/core/runtime.c
src/arch/i386/interface/syslinux/comboot_call.c
src/core/image.c
src/core/parseopt.c
src/hci/commands/digest_cmd.c
src/hci/commands/image_cmd.c
src/include/ipxe/image.h
src/include/ipxe/parseopt.h
src/include/usr/imgmgmt.h
src/tests/test.c
src/usr/autoboot.c
src/usr/imgmgmt.c