Bug 5218

Summary: In cryptsetup package,on /etc/crypttab file, add the "noauto" keyword.
Product: Mageia Reporter: Julien Aube <obconseil>
Component: RPM PackagesAssignee: Nicolas Vigier <boklm>
Status: RESOLVED INVALID QA Contact:
Severity: minor    
Priority: Normal Keywords: Triaged
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: cryptsetup-1.3.0-1.mga1.src.rpm CVE:
Status comment:

Description Julien Aube 2012-04-04 00:43:19 CEST
Description of problem:
The debian version of /etc/crypttab support the "noauto" keyword on the 4th field of /etc/crypttab to prevent a given disk line to hang the boot process.

Such keyword support might be added like this into /etc/init.d/functions (around line 930) :

            swap)
                makeswap=yes
                ;;
+            noauto)
+                skip="yes"
+                ;;
            tmp)
                mke2fs=yes
            esac

This is tested successfully. 
The user still needs to call the cryptsetup command manually afterward (since no commande "cryptdisk_start" or "cryptdisk_stop" exists yet.


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

How reproducible:
N/A
Comment 1 Manuel Hiebel 2012-04-04 01:10:51 CEST
Hi, thanks for reporting this bug.
Assigned to the package maintainer.

(Please set the status to 'assigned' if you are working on it)

Keywords: (none) => Triaged
CC: (none) => manuel
Assignee: bugsquad => boklm

Manuel Hiebel 2012-04-04 01:13:00 CEST

CC: manuel => (none)

Comment 2 Nicolas Vigier 2012-04-04 18:14:21 CEST
(In reply to comment #0)
> Description of problem:
> The debian version of /etc/crypttab support the "noauto" keyword on the 4th
> field of /etc/crypttab to prevent a given disk line to hang the boot process.
> 
> Such keyword support might be added like this into /etc/init.d/functions
> (around line 930) :
> 
>             swap)
>                 makeswap=yes
>                 ;;
> +            noauto)
> +                skip="yes"
> +                ;;
>             tmp)
>                 mke2fs=yes
>             esac

We already have this. In initscript 9.34 :
http://git.fedorahosted.org/git/?p=initscripts.git;a=blob;f=rc.d/init.d/functions;h=e313e35b8991ce89877050d819e0f4a2862db6e9;hb=cbc9da68cc15b95482521db9895a2e54ca82fb6a#l769

Which version of the initscript package are you using ?
Comment 3 Julien Aube 2012-04-04 18:45:44 CEST
It's initscripts-9.21-12.mga1.

Thanks for the report, this bug may be closed now.
Comment 4 Nicolas Vigier 2012-04-04 19:04:34 CEST
Closing.

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