]> git.ozlabs.org Git - petitboot/blobdiff - discover/boot.c
protocol: Separate device add from boot-option add messages
[petitboot] / discover / boot.c
index 6109562491db79855655a4bf8431e07c20bd1e0f..02618cce1251fd070e3baec29c27bac762141c45 100644 (file)
@@ -117,9 +117,9 @@ int boot(void *ctx, struct boot_option *opt, struct boot_command *cmd,
        }
 
        if (cmd->initrd_file) {
-               image = talloc_strdup(ctx, cmd->initrd_file);
+               initrd = talloc_strdup(ctx, cmd->initrd_file);
        } else if (opt && opt->initrd_file) {
-               image = talloc_strdup(ctx, opt->initrd_file);
+               initrd = talloc_strdup(ctx, opt->initrd_file);
        }
 
        if (cmd->boot_args) {