Add support for GPG signature enforcement on booted
[petitboot] / discover / kboot-parser.c
index cebe787fddb44d5c480461f4f91c38e207e992a5..f7f75e07ceae60212f3ccef5cea34d7ed3ef93aa 100644 (file)
@@ -96,6 +96,12 @@ out_add:
        d_opt->boot_image = create_devpath_resource(d_opt,
                                conf->dc->device, value);
 
+       char* args_sigfile_default = talloc_asprintf(d_opt,
+               "%s.cmdline.sig", value);
+       d_opt->args_sig_file = create_devpath_resource(d_opt,
+                               conf->dc->device, args_sigfile_default);
+       talloc_free(args_sigfile_default);
+
        if (root) {
                opt->boot_args = talloc_asprintf(opt, "root=%s %s", root, args);
                talloc_free(args);