Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 442374

Summary: sys-fs/cryptsetup - Replace ${dev} to be more descriptive in * pre_mount: mkswap ${dev} ...
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Severity: minor    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

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