- cmd->option_id = talloc_strdup(cmd, event_get_param(event, "id"));
- cmd->boot_image_file = talloc_strdup(cmd, event_get_param(event, "image"));
- cmd->initrd_file = talloc_strdup(cmd, event_get_param(event, "initrd"));
- cmd->dtb_file = talloc_strdup(cmd, event_get_param(event, "dtb"));
- cmd->boot_args = talloc_strdup(cmd, event_get_param(event, "args"));
+ pb_log("Found option with id %s!\n", opt->option->id);
+ cmd->option_id = talloc_strdup(cmd, opt->option->id);
+ } else {
+ pb_log("Booting based on full boot command\n");
+ cmd->option_id = talloc_strdup(cmd, event_get_param(event, "id"));
+ cmd->boot_image_file = talloc_strdup(cmd, event_get_param(event, "image"));
+ cmd->initrd_file = talloc_strdup(cmd, event_get_param(event, "initrd"));
+ cmd->dtb_file = talloc_strdup(cmd, event_get_param(event, "dtb"));
+ cmd->boot_args = talloc_strdup(cmd, event_get_param(event, "args"));
+ }