public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "John P. Burkett" <burkett@uri.edu>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] udev, cryptsetup, and ensuing problems
Date: Thu, 25 Jun 2009 00:16:51 -0400	[thread overview]
Message-ID: <4A42FA33.5000600@uri.edu> (raw)
In-Reply-To: <58965d8a0906240730r291749fbl532ed5b923f41eaa@mail.gmail.com>

Paul Hartman wrote:
> On Tue, Jun 23, 2009 at 7:39 PM, John P. Burkett<burkett@uri.edu> wrote:
>> !!! Couldn't download 'cryptsetup-1.0.6.tar.bz2'. Aborting.
> 
> I don't know why your downloads are failing or the rest of your
> problems, but you can download cryptsetup manually from here:
> 
> http://code.google.com/p/cryptsetup/downloads/detail?name=cryptsetup-1.0.6.tar.bz2&can=2&q=
> 
Paul, Thank you very much for this valuable tip. I downloaded
cryptsetup-1.0.6.tar.bz2&can=2&q= to  /usr/portage/distfiles/ and did
"emerge cryptsetup"

The response included the following lines:
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.20-gentoo-r6
 * Checking for suitable kernel configuration options...
 *   CONFIG_DM_CRYPT:	is not set (required for cryptsetup)
 *
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.
 * Checking for suitable kernel configuration options...
 *   CONFIG_CRYPTO:	is not set (required for cryptsetup)
 *
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.
 * Checking for suitable kernel configuration options...
 *   CONFIG_CRYPTO_CBC:	is not set (required for kernel 2.6.19)
 *
 * Please check to make sure these options are set correctly.
 * Failure to do so may cause unexpected problems.

The references to kernel version 2.6.20 and 2.6.19 surprised me because
doing "uname -r" produces "2.6.17-gentoo-r4". Suggestions about how to
set CONFIG_DM_CRYPT and CONFIG_CRYPTO appropriately would be
appreciated.  As a user of kernel 2.6.17, may I leave CONFIG_CRYPTO_CBC
unset?

Further down, the output included these lines:
>>> Installing (1 of 1) sys-fs/cryptsetup-1.0.6-r2
 * This ebuild introduces a new set of scripts and configuration
 * than the last version. If you are currently using /etc/conf.d/cryptfs
 * then you *MUST* copy your old file to:
 * /etc/conf.d/dmcrypt
 * Or your encrypted partitions will *NOT* work.

In the directory /etc/conf.d there is no cryptfs and thus, I assume,
nothing to be copied.

The next two lines of output are
 * Please see the example for configuring a LUKS mountpoint
 * in /etc/conf.d/dmcrypt

In dmcrypt I find two references to LUKS.  First, "the init-script which
reads this file detects whether your partition is LUKS or not. No mkfs
is run unless you specify a makefs"  Second,
"# options='<opts>' == cryptsetup, for LUKS you can only use --readonly"
The meaning of these references is not clear to me.

Then come the instruction:
 * If you are using baselayout-2 then please do:
 * rc-update add dmcrypt boot

Doing "locate baselayout-2" produces
/var/cache/edb/dep/usr/portage/sys-apps/baselayout-2.0.0
/usr/portage/metadata/cache/sys-apps/baselayout-2.0.0
/usr/portage/metadata/cache/sys-apps/baselayout-2.0.1
/usr/portage/sys-apps/baselayout/baselayout-2.0.0.ebuild
/usr/portage/sys-apps/baselayout/baselayout-2.0.1.ebuild

Does the presence of those files indicate that my system is "using"
baselayout-2?

Best regards,
John

-- 
John P. Burkett
Department of Economics
University of Rhode Island
Kingston, RI 02881-0808
USA

phone (401) 874-9195



  reply	other threads:[~2009-06-25  4:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-24  0:39 [gentoo-user] udev, cryptsetup, and ensuing problems John P. Burkett
2009-06-24  9:54 ` Alan McKinnon
2009-06-24 13:47   ` John P. Burkett
2009-06-24 13:54     ` Alan McKinnon
2009-06-24 14:33       ` John P. Burkett
2009-06-24 18:38       ` Dale
2009-06-24 14:30 ` Paul Hartman
2009-06-25  4:16   ` John P. Burkett [this message]
2009-06-25  8:20     ` Neil Bothwick
2009-06-25 13:59       ` John P. Burkett

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=4A42FA33.5000600@uri.edu \
    --to=burkett@uri.edu \
    --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