From: "Dirk Heinrichs" <dirk.heinrichs@online.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Cryptfs
Date: Sun, 30 Mar 2008 18:50:59 +0200 [thread overview]
Message-ID: <200803301851.04547.dirk.heinrichs@online.de> (raw)
In-Reply-To: <20080330140644.63d0bf61@loonquawl.digimed.co.uk>
[-- Attachment #1: Type: text/plain, Size: 1146 bytes --]
Am Sonntag, 30. März 2008 schrieb Neil Bothwick:
> On Sun, 30 Mar 2008 09:50:47 +0200, Dirk Heinrichs wrote:
> > > However, the setup doesn't work. I'm not asked for the passphrase, the
> > > mappings are not created. What did I forget?
> >
> > That the mappings are created all in one go before anything is mounted,
> > so you can't put the keyfile for /var into /boot. The only thing that
> > would work is to put the keyfile on the root fs, because that's the
> > only one that is mounted when the mappings are created, like:
>
> You can if you add
>
> pre_mount="mount /dev/mapper/boot /boot"
>
> to the boot stanza of dmcrypt, it forces the filesystem to be mounted
> immediately.
>
> I ue a variant of this, where keys are stored on a dedicated partition.
> The pre_mount and post_mount (which unmounts the filesystem) ensure that
> the keys are only visible for as long as it takes to mount the other
> filesystems.
I protect the root fs with a passphrase and all other volumes with a keyfile
stored in this fs. No need to mount anything (however, I _do_ need an
initramfs because of this).
Bye...
Dirk
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2008-03-30 16:51 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-29 17:32 [gentoo-user] Cryptfs Florian Philipp
2008-03-30 7:50 ` Dirk Heinrichs
2008-03-30 11:24 ` Florian Philipp
2008-03-30 11:24 ` Dirk Heinrichs
2008-03-30 13:06 ` Neil Bothwick
2008-03-30 16:50 ` Dirk Heinrichs [this message]
2008-03-30 20:13 ` Neil Bothwick
2008-03-31 6:36 ` Dirk Heinrichs
2008-03-31 8:11 ` Neil Bothwick
2008-03-31 16:15 ` Dirk Heinrichs
2008-03-31 22:11 ` Neil Bothwick
2008-04-01 6:04 ` Dirk Heinrichs
2008-04-01 7:49 ` Neil Bothwick
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=200803301851.04547.dirk.heinrichs@online.de \
--to=dirk.heinrichs@online.de \
--cc=gentoo-user@lists.gentoo.org \
/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