Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 115878 - Use EVMS for cryptsetup-luks DM objects
Summary: Use EVMS for cryptsetup-luks DM objects
Status: VERIFIED DUPLICATE of bug 115875
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-17 13:38 UTC by Brad Allen
Modified: 2005-12-17 13:53 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
tarball of portage overlay for evms patch (evms.tar,40.00 KB, application/octet-stream)
2005-12-17 13:40 UTC, Brad Allen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brad Allen 2005-12-17 13:38:57 UTC
This is useful for security aspects of Gentoo, mostly including the recent LUKS support Gentoo has better than other distributions.  Eventually, we'd like to think that EVMS will do this, but we don't know if or when they might do it, so for now, this is the solution.  Perhaps a USE option to EVMS could be implemented to engage this only when that USE value is set (what to call it?  evmsdmloop?)

I like to put my entire disk or partition in cryptsetup-luks type LUKS partitions/disks.  Then, I use EVMS on top of that.  That way, not only are the various EVMS meta files and object sizes encrypted, but I can resize my EVMS partitions easily inside EVMS as normal without having to wait for EVMS team to support LUKS directly.  To do this, one needs EVMS to recognize the cryptsetup luksOpen created device-mapper device(s) as a device EVMS ought to look at in this way.  This has to be carefully done, since you could create loops, so carefully read the email attached and specify the correct options to EVMS and DM configuration files (/etc/evms.conf and /etc/lvm/lvm.conf).  It works great for me on two systems I have.

This requires a patch in EVMS.  It is rather simple.  I modified the latest EVMS ebuild by adding someone's patch for this (since they also wanted to do it) and put it into my portage OVERLAY directory.  Contained in the attached file is a tar that has this overlay portage ebuild and associated files.  The two main different files are  etc/portage/sys-fs/evms/evms-2.5.3-r1.ebuild  modified to contain the patch and the patch itself, plus updated digests and manifests.  Excerpts:

--- evms-2.5.3-r1.ebuild.~1~    2005-11-11 15:36:03.000000000 -0800
+++ evms-2.5.3-r1.ebuild        2005-11-25 11:16:54.000000000 -0800
@@ -27,6 +27,7 @@
        cd ${S}
        epatch ${FILESDIR}/${PV}/compaq_segments.patch
        epatch ${FILESDIR}/${PV}/md_expand.patch
+       epatch ${FILESDIR}/${PV}/devmapper.patch
 }
 
 src_compile() {

and etc/portage/sys-fs/evms/files/2.5.3/devmapper.patch
Comment 1 Brad Allen 2005-12-17 13:40:11 UTC
Created attachment 74957 [details]
tarball of portage overlay for evms patch

tar file of portage overlay directory implementing enhancement, including ebuild  and patch
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-12-17 13:45:51 UTC
Hopefully for the last time: 

Attach *plaintext* patch to the *original* bug (Bug 115875) and *reopen* that bug then. Do *not* attach tarballs or any other archives, do *not* clone bugs and do *not* file duplicates over and over again.

Thanks!


*** This bug has been marked as a duplicate of 115875 ***
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-12-17 13:46:18 UTC
CLOSED
Comment 4 Brad Allen 2005-12-17 13:51:44 UTC
Then you ought to have a proper attachment system that is available from the initial bug!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-12-17 13:53:27 UTC
(In reply to comment #4)
> Then you ought to have a proper attachment system that is available from the
> initial bug!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> 

http://bugs.gentoo.org/attachment.cgi?bugid=115875&action=enter

^^^^^ !!!