Bug 5218 - In cryptsetup package,on /etc/crypttab file, add the "noauto" keyword.
Summary: In cryptsetup package,on /etc/crypttab file, add the "noauto" keyword.
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal minor
Target Milestone: ---
Assignee: Nicolas Vigier
QA Contact:
URL:
Whiteboard:
Keywords: Triaged
Depends on:
Blocks:
 
Reported: 2012-04-04 00:43 CEST by Julien Aube
Modified: 2012-04-04 19:04 CEST (History)
0 users

See Also:
Source RPM: cryptsetup-1.3.0-1.mga1.src.rpm
CVE:
Status comment:


Attachments

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


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