+
+ return;
+ }
+
+ /* all other processing requires an image */
+ if (!opt) {
+ pb_log("%s: unknown name: %s\n", __func__, name);
+ return;
+ }
+
+ /* initrd */
+ if (streq(name, "initrd")) {
+ state->initrd = talloc_strdup(state, value);
+ return;
+ }
+
+ /* label */
+ if (streq(name, "label")) {
+ opt->option->id = talloc_asprintf(opt->option, "%s#%s",
+ conf->dc->device->device->id, value);
+ opt->option->name = talloc_strdup(opt->option, value);
+ return;
+ }
+
+ /* args */
+ if (streq(name, "device")) {
+ printf("option device : %s", value);
+ state->device = talloc_strdup(state, value);
+ return;
+ }
+
+ if (streq(name, "parititon")) {
+ state->partition = talloc_strdup(state, value);
+ return;
+ }
+
+ if (streq(name, "append")) {
+ opt->option->boot_args = talloc_asprintf_append(
+ opt->option->boot_args, "%s ", value);
+ return;
+ }
+
+ if (streq(name, "initrd-size")) {
+ state->initrd_size = talloc_strdup(state, value);
+ return;
+ }
+
+ if (streq(name, "literal")) {
+ state->literal = talloc_strdup(state, value);
+ return;
+ }
+
+ if (streq(name, "ramdisk")) {
+ state->ramdisk = talloc_strdup(state, value);
+ return;
+ }
+
+ if (streq(name, "read-only")) {
+ state->read_only = true;
+ return;
+ }
+
+ if (streq(name, "read-write")) {
+ state->read_write = true;
+ return;
+ }
+
+ if (streq(name, "root")) {
+ state->root = talloc_strdup(state, value);
+ return;