dm-crypt.saout.de archive mirror
 help / color / mirror / Atom feed
From: "JT Morée" <moreejt@yahoo.com>
To: Dm-crypt Mail List <dm-crypt@saout.de>
Subject: [dm-crypt] json help
Date: Thu, 12 Aug 2021 13:34:17 +0000 (UTC)	[thread overview]
Message-ID: <1572027243.1491001.1628775257558@mail.yahoo.com> (raw)
In-Reply-To: 1572027243.1491001.1628775257558.ref@mail.yahoo.com

Hello,

I am back to working with json data now that 2.4.0 is closer to release. I am using source clone cloned from gitlab to get the latest features but not able to get some commands to work.

If I'm reading the latest man page properly these commands should import json data into the header but it always fails for me.

$ echo '{ "foo" : "bar" }' |  cryptsetup token import /dev/sdb2 --key-slot 1
Failed to import token from file.

$ echo '{ "foo": "bar" }' > test.json
$ cryptsetup token import /dev/sdb2 --key-slot 1 --json-file ./test.json
Failed to import token from file.
_______________________________________________
dm-crypt mailing list -- dm-crypt@saout.de
To unsubscribe send an email to dm-crypt-leave@saout.de

       reply	other threads:[~2021-08-12 13:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1572027243.1491001.1628775257558.ref@mail.yahoo.com>
2021-08-12 13:34 ` JT Morée [this message]
2021-08-12 16:25   ` [dm-crypt] Re: json help Milan Broz
2021-08-16 12:35     ` JT Morée
2021-08-16 12:49       ` Ondrej Kozina
2021-08-16 13:19       ` Ondrej Kozina
2021-08-20 13:46         ` JT Morée
2021-08-23 12:54           ` Ondrej Kozina

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1572027243.1491001.1628775257558@mail.yahoo.com \
    --to=moreejt@yahoo.com \
    --cc=dm-crypt@saout.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).