diff options
author | Michael Brown | 2008-07-08 02:30:11 +0200 |
---|---|---|
committer | Michael Brown | 2008-07-08 02:30:11 +0200 |
commit | dbe9269f3a04267b27bd5528715e79bacc356703 (patch) | |
tree | 228880f641fa916eb808105c8bd0c70df8291c29 /src/hci | |
parent | [dhcp] Allow DHCP non-option settings to be cleared (diff) | |
download | ipxe-dbe9269f3a04267b27bd5528715e79bacc356703.tar.gz ipxe-dbe9269f3a04267b27bd5528715e79bacc356703.tar.xz ipxe-dbe9269f3a04267b27bd5528715e79bacc356703.zip |
[bzimage] Kill off the initrd image type
We can just treat all non-kernel images as initrds, which matches our
behaviour for multiboot kernels. This allows us to eliminate initrd as
an image type, and treat the "initrd" command as just another synonym for
"imgfetch".
Diffstat (limited to 'src/hci')
-rw-r--r-- | src/hci/commands/image_cmd.c | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/src/hci/commands/image_cmd.c b/src/hci/commands/image_cmd.c index b651078b..05e7ddee 100644 --- a/src/hci/commands/image_cmd.c +++ b/src/hci/commands/image_cmd.c @@ -24,7 +24,6 @@ #include <getopt.h> #include <gpxe/image.h> #include <gpxe/command.h> -#include <gpxe/initrd.h> #include <usr/imgmgmt.h> /** @file @@ -223,23 +222,6 @@ static int kernel_exec ( int argc, char **argv ) { } /** - * The "initrd" command - * - * @v argc Argument count - * @v argv Argument list - * @ret rc Exit code - */ -static int initrd_exec ( int argc, char **argv ) { - int rc; - - if ( ( rc = imgfetch_core_exec ( &initrd_image_type, IMG_FETCH, - argc, argv ) ) != 0 ) - return rc; - - return 0; -} - -/** * "imgload" command syntax message * * @v argv Argument list @@ -557,12 +539,12 @@ struct command image_commands[] __command = { .exec = imgfetch_exec, /* synonym for "imgfetch" */ }, { - .name = "kernel", - .exec = kernel_exec, + .name = "initrd", + .exec = imgfetch_exec, /* synonym for "imgfetch" */ }, { - .name = "initrd", - .exec = initrd_exec, + .name = "kernel", + .exec = kernel_exec, }, { .name = "imgload", |