Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 442374 - sys-fs/cryptsetup - Replace ${dev} to be more descriptive in * pre_mount: mkswap ${dev} ...
Summary: sys-fs/cryptsetup - Replace ${dev} to be more descriptive in * pre_mount...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 489986 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-11-08 18:53 UTC by Toralf Förster
Modified: 2015-04-12 20:40 UTC (History)
0 users

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 2012-11-08 18:53:38 UTC
at an unstable Gentoo Linux image with encrypted swap I see :

 * Waiting for uevents to be processed ...
 [ ok ]
 * Setting up dm-crypt mappings ...
 *   crypt-swap using: -c aes -h sha1 -d /dev/urandom create crypt-swap /dev/ubdb ...
 [ ok ]
 *     pre_mount: mkswap ${dev} ...
 [ ok ]
 [ ok ]
 * Checking local filesystems  ...



/me thinks ${dev} isn't really wanted
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2012-11-08 19:02:10 UTC
Going to assume this is part of the initscript and not due to openrc itself.

 *  sys-fs/cryptsetup 
        Matched Files:          /etc/init.d/dmcrypt;
Comment 2 Toralf Förster gentoo-dev 2013-12-01 09:32:48 UTC
*** Bug 489986 has been marked as a duplicate of this bug. ***
Comment 3 synamics 2013-12-18 13:45:01 UTC
Take a look at: /etc/conf.d/dmcrypt
That variable ${dev} should be replaced by the path of your swap partition.
Of course.
But, it seems you discommented the wrong line, he should use mkswap after encrypting the file, and should use it on /dev/mapper/<path for your swap device>
Comment 4 Toralf Förster gentoo-dev 2013-12-18 14:05:58 UTC
Well, the main issue is that it is not a descriptive info message at all
Comment 5 SpanKY gentoo-dev 2015-04-12 20:40:44 UTC
should be all set now in the tree; thanks for the report!

Commit message: Run ebegin message through eval so the output is expanded
http://sources.gentoo.org/sys-fs/cryptsetup/files/1.5.1-dmcrypt.rc?r1=1.5&r2=1.6