cryptsetup.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: Milan Broz <gmazyland@gmail.com>
To: Jasper Surmont <surmontjasper@gmail.com>, cryptsetup@lists.linux.dev
Subject: Re: dm-verity setup on loop device
Date: Thu, 7 Apr 2022 12:05:44 +0200	[thread overview]
Message-ID: <b59b57b6-1468-1041-bdbd-ec9399329dd2@gmail.com> (raw)
In-Reply-To: <CAH4tiUt1_1B64=QgU7uXmnBZZw=4FYEHtN=rZcx-zANJSbaYSQ@mail.gmail.com>

On 07/04/2022 11:40, Jasper Surmont wrote:
> While trying to understand the dm-verity code, I tried making a small
> verity setup. I created 1 readonly loop device and 1 non-readonly loop
> device. When I then try to create the verity target with the readonly
> as data device (not using veritysetup because I want to experiment on
> a low level), dmesg still says that the device is not in readonly
> mode.
> 
> Is it possible what I'm trying to achieve?

Yes, it should be possible.
(If you have device with Merkle-tree already prepared, if not, it will only
activate in failed state - but it will allow creation of the DM device.)

And if you post the exact command you are trying,
maybe we can show you where is the problem :-)

Both devices should be read only (dm-verity cannot be mapped for writes)
and I guess you need to call dmsetup with -r (--readonly) option.

Milan

  reply	other threads:[~2022-04-07 10:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-07  9:40 dm-verity setup on loop device Jasper Surmont
2022-04-07 10:05 ` Milan Broz [this message]
2022-04-07 11:42   ` Jasper Surmont
2022-04-07 12:15     ` Milan Broz

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=b59b57b6-1468-1041-bdbd-ec9399329dd2@gmail.com \
    --to=gmazyland@gmail.com \
    --cc=cryptsetup@lists.linux.dev \
    --cc=surmontjasper@gmail.com \
    /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).