diff options
author | Geoff Levand <geoff@infradead.org> | 2013-04-15 12:59:14 -0700 |
---|---|---|
committer | Geoff Levand <geoff@infradead.org> | 2013-04-15 13:01:59 -0700 |
commit | 3ea411971ea7db66c44527aa720d82567b7a1a5a (patch) | |
tree | fca5efe0cdfa499aaba7ac50763428368c1352a7 /discover | |
parent | dbf139003bd6c8c6ca03ae7f533aa74afd8060c6 (diff) | |
download | talos-petitboot-3ea411971ea7db66c44527aa720d82567b7a1a5a.tar.gz talos-petitboot-3ea411971ea7db66c44527aa720d82567b7a1a5a.zip |
discover: Fix boot with initrd error
Fix typo in boot() routine.
Signed-off-by: Geoff Levand <geoff@infradead.org>
Diffstat (limited to 'discover')
-rw-r--r-- | discover/boot.c | 4 |
1 files 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) { |