Bug 16248

Summary: diskdrake ignores noauto flag in /etc/crypttab and crashes during start due to missing device node
Product: Mageia Reporter: Florian Hubold <doktor5000>
Component: RPM PackagesAssignee: Mageia tools maintainers <mageiatools>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal CC: doktor5000, kfjellda, marja11, pterjan, thierry.vignaud
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard: MGA5TOO
Source RPM: CVE:
Status comment:

Description Florian Hubold 2015-06-29 21:21:00 CEST
Description of problem:


According to the Mageia 5 review at https://nwrickert2.wordpress.com/2015/06/26/reviewing-mageia-5/#comment-3048  diskdrake crashed for the reviewer. When running it from a terminal, he got an error messages about "mapper/cr_shared". He added two lines to /etc/crypttab, one of them was for "cr_shared". 

He set that to "noauto" in the last column. So the encrypted partition was never opened and the device "/dev/mapper/cr_shared" was never created previously. So it looks as if diskdrake parses "/etc/crypttab" and tries to open every device even when it is flagged as noauto, and even when no device no exists under /dev/mapper and then crashed ungracefully during start.

Please check and fix where applicable, thanks in advance.

Reproducible: 

Steps to Reproduce:
Florian Hubold 2015-06-29 21:21:55 CEST

CC: (none) => doktor5000, pterjan, thierry.vignaud
Whiteboard: (none) => MGA5TOO

Comment 1 Pascal Terjan 2015-06-29 22:36:41 CEST
It should probably not crash but yes diskdrake is there to manage your disk so it needs to list all partitions.
It needs to get the size, filesystem type, etc even if the partition is noauto.
Comment 2 Florian Hubold 2016-02-16 19:28:31 CET
*** Bug 17727 has been marked as a duplicate of this bug. ***

CC: (none) => kfjellda

Comment 3 Florian Hubold 2016-02-17 20:50:59 CET
*** Bug 17727 has been marked as a duplicate of this bug. ***
Marja Van Waes 2016-10-15 23:39:42 CEST

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