From 3ea411971ea7db66c44527aa720d82567b7a1a5a Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Mon, 15 Apr 2013 12:59:14 -0700 Subject: [PATCH] discover: Fix boot with initrd error Fix typo in boot() routine. Signed-off-by: Geoff Levand --- discover/boot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.39.2