Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 509412 - sys-fs/cryptsetup: /etc/init.d/dmcrypt should automatically control swap relative dependencies
Summary: sys-fs/cryptsetup: /etc/init.d/dmcrypt should automatically control swap rela...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-02 18:23 UTC by Toralf Förster
Modified: 2015-04-12 20:13 UTC (History)
1 user (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 Toralf Förster gentoo-dev 2014-05-02 18:23:38 UTC
During shutdown therefore I do get a lot of error messages in one of my user mdoe linux images w/ encrypted swap partition.
Comment 1 SpanKY gentoo-dev 2014-05-02 22:57:51 UTC
it makes no sense to hardcode this for everyone.  we should be able to detect it dynamically though.
Comment 2 Toralf Förster gentoo-dev 2014-05-03 09:09:37 UTC
(In reply to SpanKY from comment #1)
> it makes no sense to hardcode this for everyone.  we should be able to
> detect it dynamically though.

yep, a logic which evaluates something like

$> grep ^swap= /etc/conf.d/dmcrypt
swap=crypt-swap

would be fine.
Comment 3 SpanKY gentoo-dev 2015-04-12 20:13:28 UTC
should be all set now in the tree; thanks for the report!

Commit message: Automatically run before swap when creating swap files
http://sources.gentoo.org/sys-fs/cryptsetup/files/1.5.1-dmcrypt.rc?r1=1.3&r2=1.4