From: Geoff Levand Date: Mon, 15 Apr 2013 19:59:14 +0000 (-0700) Subject: discover: Fix boot with initrd error X-Git-Tag: v1.0.0~716 X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=3ea411971ea7db66c44527aa720d82567b7a1a5a discover: Fix boot with initrd error Fix typo in boot() routine. Signed-off-by: Geoff Levand --- diff --git a/discover/boot.c b/discover/boot.c index 6109562..02618cc 100644 --- a/discover/boot.c +++ b/discover/boot.c @@ -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) {