Bug 16248 - diskdrake ignores noauto flag in /etc/crypttab and crashes during start due to missing device node
Summary: diskdrake ignores noauto flag in /etc/crypttab and crashes during start due t...
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia tools maintainers
QA Contact:
URL:
Whiteboard: MGA5TOO
Keywords:
: 17727 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-06-29 21:21 CEST by Florian Hubold
Modified: 2016-10-15 23:39 CEST (History)
5 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

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


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