Bug 18953

Summary: cryptmount -a bails out when it finds the first entry in /etc/cryptmount/cmtab is mounted
Product: Mageia Reporter: w unruh <unruh>
Component: RPM PackagesAssignee: Guillaume Rousse <guillomovitch>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: marja11
Version: CauldronKeywords: PATCH
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard: MGA5TOO
Source RPM: cryptmount-5.0-4.1.mga5, cryptmount-5.2-1.mga6 CVE:
Status comment:
Attachments: Patch received from Penny upstream.

Description w unruh 2016-07-15 23:04:09 CEST
Description of problem: cryptmount -a is supposed to mount all of the files listed in /etc/cryptmount/cmtab. However, if the first entry is already mounted, cryptmount bails with a statement like 

Target "encrypt" is already mounted

even if the other entries are not mounted. It should try to mount each of the entries in cmtab, and not bail out at the unsuccessful mount. This means that if one is mounted and 5 are not, you have to enter each of those 5 by hand to mount them.


Version-Release number of selected component (if applicable):

cryptmount-5.0-4.1.mga5
Marja Van Waes 2016-07-16 08:52:53 CEST

CC: (none) => marja11
Assignee: bugsquad => guillomovitch

Comment 1 Guillaume Rousse 2016-07-26 21:32:24 CEST
That doesn't seems to be a mageia-specific issue. You'd better report it directly upstream, I don't have any added value here.

Status: NEW => RESOLVED
Resolution: (none) => WONTFIX

Comment 2 w unruh 2016-08-05 18:24:13 CEST
I have reported it upstream, and have received a patch which seems to work on Mageia 5 version of cryptmount, and also on the Mageia 6 version.

Status: RESOLVED => REOPENED
Resolution: WONTFIX => (none)

Comment 3 w unruh 2016-08-05 18:26:01 CEST
Created attachment 8309 [details]
Patch received from Penny upstream.

Here is the patch.
Comment 4 w unruh 2016-08-05 18:28:18 CEST
(I have tested it on the cryptmount 5.0 in Mageia 5 and it works and he designed it for cryptmount 5.2 but I have not tested it there. )
Marja Van Waes 2016-08-06 07:54:42 CEST

Keywords: (none) => PATCH
Version: 5 => Cauldron
Source RPM: cryptmount-5.0-4.1.mga5 => cryptmount-5.0-4.1.mga5, cryptmount-5.2-1.mga6
Whiteboard: (none) => MGA5TOO

Comment 5 Guillaume Rousse 2016-08-09 08:05:48 CEST
Fixed in cauldron. The issue, however, doesn't qualify for an update in stable distribution, according to our update policy.

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED