]> git.ozlabs.org Git - petitboot/commitdiff
discover: Fix boot with initrd error
authorGeoff Levand <geoff@infradead.org>
Mon, 15 Apr 2013 19:59:14 +0000 (12:59 -0700)
committerGeoff Levand <geoff@infradead.org>
Mon, 15 Apr 2013 20:01:59 +0000 (13:01 -0700)
Fix typo in boot() routine.

Signed-off-by: Geoff Levand <geoff@infradead.org>
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) {