Bug 18953 - cryptmount -a bails out when it finds the first entry in /etc/cryptmount/cmtab is mounted
Summary: cryptmount -a bails out when it finds the first entry in /etc/cryptmount/cmta...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Guillaume Rousse
QA Contact:
URL:
Whiteboard: MGA5TOO
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2016-07-15 23:04 CEST by w unruh
Modified: 2016-08-09 08:05 CEST (History)
1 user (show)

See Also:
Source RPM: cryptmount-5.0-4.1.mga5, cryptmount-5.2-1.mga6
CVE:
Status comment:


Attachments
Patch received from Penny upstream. (1.37 KB, patch)
2016-08-05 18:26 CEST, w unruh
Details | Diff

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


Note You need to log in before you can comment on or make changes to this bug.