Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207237 - punt cryptsetup-luks
Summary: punt cryptsetup-luks
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Benjamin Smee (strerror) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-24 00:00 UTC by Lars Strojny
Modified: 2008-04-14 21:45 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Strojny 2008-01-24 00:00:53 UTC
The necessary functions in /lib/rcscripts/addons/dm-crypt-start.sh and /lib/rcscripts/addons/dm-crypt-stop.sh are not executed at all with baselayout 2.0. To hotfix that I've just created an init-script called volumes (because the related function is dm_crypt_execute_volumes) which looks like that:
depend() {
        if [ -e /lib/librc.so ]; then
                # on baselayout-1 this causes
                # dependency-cycles with checkroot (before *)
                before checkfs
                after modules
        fi
}

start() {
        einfo "Mapping crypt devices"
        start_addon dm-crypt
        eend 0
}

stop() {
        einfo "Unmapping crypto devices"
        stop_addon dm-crypt
        eend 0
}

That works fine exception that this is of course not the correct solution.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-01-24 00:40:39 UTC
Uhm...

emerge -C sys-fs/cryptsetup-luks; emerge sys-fs/cryptsetup; rc-update add dmcrypt boot
Comment 2 Lars Strojny 2008-01-25 06:52:04 UTC
OK, I see this works. Is there any reason for luks nowadays? I guess warning the user about using luks would be a good idea then.
Comment 3 SpanKY gentoo-dev 2008-01-25 12:48:27 UTC
we had to wait for the new cryptsetup to stabilize first ... now that it has, we can mask/punt cryptsetup-luks
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2008-02-02 14:30:37 UTC
We switched during 2007.1, so we're good for 2008.0's release.
Comment 5 Martin Meyer 2008-04-14 16:05:42 UTC
Can someone please clarify what the New Way(tm) is for doing encrypted volumes? It sounds in this bug like luks is no longer the way to go, but that's all I can find references to on the forums and on the wiki... Also, the 2008.0 live cd doesn't have a cryptsetup command at all.

Any chance of a developer going through and weeding out the old articles on the wiki and maybe making a post on Planet Gentoo?
Comment 6 Doug Goldstein (RETIRED) gentoo-dev 2008-04-14 16:23:10 UTC
(In reply to comment #3)
> we had to wait for the new cryptsetup to stabilize first ... now that it has,
> we can mask/punt cryptsetup-luks
> 

I've been trying to get in touch with Ben to make this happen. But it appears he's still away.

<Cardoe> !away strerror
<jeeves> strerror ->  away in paris, will be back 23rd feb.

I'd be fine with removing cryptsetup-luks, and sticking a pkgmove entry in for it and then fixing all the deps.

release: would that screw anything up for you?
Comment 7 Chris Gianelloni (RETIRED) gentoo-dev 2008-04-14 17:07:52 UTC
Nope.  We're on cryptsetup, exclusively.
Comment 8 SpanKY gentoo-dev 2008-04-14 17:41:19 UTC
Doug: go for it ... i dont think there's anything holding up the process now

previously we were just waiting for things to settle / stabilize
Comment 9 Doug Goldstein (RETIRED) gentoo-dev 2008-04-14 21:45:00 UTC
punted