Bug 710259

Summary: Encrypted swap not initialised at boot (dependency failed)
Product: [Fedora] Fedora Reporter: Dag <den.mail>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 15CC: Bert.Deknuydt, gansalmon, itamar, jonathan, kernel-maint, madhu.chinakonda
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-09 13:07:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Dag 2011-06-02 20:25:13 UTC
Description of problem:
I set up an encrypted swap partition 1 year ago (Fedora 13) in crypttab and upgraded to Fedora 14 without problem.
However I upgraded yesterday to Fedora 15 and my encrypted swap setup ceased functionning.

Version-Release number of selected component (if applicable):
kernel 2.6.38.6-27.fc15.x86_64

How reproducible:
always

Steps to Reproduce:
1. set up an encrypted swap partition in crypttab :
swap /dev/sdaX /dev/urandom swap
2. set up fstab accordingly
/dev/mapper/swap swap swap defaults 0 0
3. reboot
4. the boot process is waiting for swap to be ready (1 or 2 minutes!), then fails :
Starting swap aborted because a dependency failed.

  
Actual results:
There is no swap on my system at boot.

Expected results:
Swap partition should be available as a regular swap-formatted device on /dev/mapper/swap.

Additional info:
I tried to check where the problem was :
dmsetup info swap
It says that swap device is correctly configured.
swapon /dev/mapper/swap
says that it can't use thi as swap.
I entered this :
mkswap /dev/mapper/swap
swapon /dev/mapper/swap
OK : my system has now encrypted swap.

So it seems that the device was not recognised as swap at boottime, but after formatting it, it's OK.

I have a tmp device that is configured like the swap device, but this one is working OK.

Comment 1 Bert DeKnuydt 2011-06-05 19:57:10 UTC
Seems a duplicate of 710839 to me.  It 'hangs' 60 seconds per swap device.

Comment 2 Dag 2011-06-09 13:07:08 UTC
hi all,

Yes, I checked for bug 710839 : it is exactly what I encountered in this present bug (710259).

So I suppose I can mark this bug (710259) as a duplicate of bug 710839.

Bye for now

*** This bug has been marked as a duplicate of bug 710839 ***