summaryrefslogtreecommitdiffstats
path: root/helper/helper.h
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-08-19 15:21:17 +0100
committerRichard Jones <rjones@redhat.com>2010-08-24 13:17:41 +0100
commitf0893a62d46605305ae14baba6cae3eebffc6005 (patch)
tree5e641cfc63f7dc04d61ab0a93f8faafb6359293e /helper/helper.h
parent5b45043e8cc72285f5f7077ae65e0ac98f40ec58 (diff)
downloadfebootstrap-f0893a62d46605305ae14baba6cae3eebffc6005.tar.gz
febootstrap-f0893a62d46605305ae14baba6cae3eebffc6005.tar.xz
febootstrap-f0893a62d46605305ae14baba6cae3eebffc6005.zip
Add -f ext2 option.
This option doesn't work yet. The commit is just for adding the capability to pass the extra kernel/initrd/appliance parameters through 'main.c' and 'appliance.c'.
Diffstat (limited to 'helper/helper.h')
-rw-r--r--helper/helper.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/helper/helper.h b/helper/helper.h
index 9bb637a..cb28695 100644
--- a/helper/helper.h
+++ b/helper/helper.h
@@ -23,8 +23,15 @@
#include "fts_.h"
struct writer {
- /* Start a new appliance, finish one off. */
- void (*wr_start) (const char *appliance);
+ /* Start building a new appliance.
+ * 'appliance' is the output appliance.
+ * 'initrd' is the mini-initrd to create (only used for ext2 output).
+ * 'modpath' is the kernel module path.
+ */
+ void (*wr_start) (const char *appliance,
+ const char *modpath, const char *initrd);
+
+ /* Finish off the appliance. */
void (*wr_end) (void);
/* Append the named host file to the appliance being built. The
@@ -45,11 +52,14 @@ extern struct timeval start_t;
extern int verbose;
/* appliance.c */
-extern void create_appliance (char **inputs, int nr_inputs, const char *whitelist, const char *modpath, const char *appliance, struct writer *writer);
+extern void create_appliance (char **inputs, int nr_inputs, const char *whitelist, const char *modpath, const char *initrd, const char *appliance, struct writer *writer);
/* cpio.c */
extern struct writer cpio_writer;
+/* ext2.c */
+extern struct writer ext2_writer;
+
/* kernel.c */
extern const char *create_kernel (const char *hostcpu, const char *kernel);