#include <stdlib.h>
#include <string.h>
#include <ctype.h>
+#include <i18n/i18n.h>
#include "log/log.h"
#include "talloc/talloc.h"
/* populate the boot option from state data */
state->opt->boot_image = create_yaboot_devpath_resource(state,
conf, state->boot_image);
+
+ char* args_sigfile_default = talloc_asprintf(opt,
+ "%s.cmdline.sig", state->boot_image);
+ state->opt->args_sig_file = create_yaboot_devpath_resource(state,
+ conf, args_sigfile_default);
+ talloc_free(args_sigfile_default);
+
if (state->initrd) {
state->opt->initrd = create_yaboot_devpath_resource(state,
conf, state->initrd);
state->opt->option->is_default = true;
discover_context_add_boot_option(conf->dc, state->opt);
+ state->opt = NULL;
}
static void yaboot_process_pair(struct conf_context *conf, const char *name,
continue;
conf_parse_buf(conf, buf, len);
+ device_handler_status_dev_info(dc->handler, dc->device,
+ _("Parsed yaboot configuration from %s"),
+ *filename);
talloc_free(buf);
}