Bug 448421

Summary: Encrypted swap triggers bug #439371
Product: Red Hat Enterprise Linux 5 Reporter: Ian Pilcher <ipilcher>
Component: mkinitrdAssignee: Peter Jones <pjones>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.2Keywords: Regression
Target Milestone: rc   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-06-03 17:53:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ian Pilcher 2008-05-26 18:03:03 UTC
Description of problem:
See bug #439371 and below.

Version-Release number of selected component (if applicable):
mkinitrd-5.1.19.6-28

How reproducible:
100%

Steps to Reproduce:
1. Create logical volume for encrypted swap.
2. Configure /etc/crypttab and /etc/fstab to use encrypted swap. 
3. Install new kernel package.
  
Actual results:
/sbin/mkinitrd: line 368: cd: slaves: No such file or directory
mkinitrd hangs

Expected results:
initrd created, grub.conf updates, etc.

Additional info:
Here is my /etc/crypttab:

crypt   /dev/ipilcher_vg/crypt_lv       none
swap    /dev/ipilcher_vg/swap_lv        /dev/urandom    \
                        cipher=aes-cbc-essiv:sha256,swap

(I.e. /dev/mapper/swap is the encrypted device, on top of
/dev/ipilcher_vg/swap_lv.)

This gives me the following:

/sys/block/dm-9
/sys/block/dm-9/dev
/sys/block/dm-9/holders
/sys/block/dm-9/range
/sys/block/dm-9/removable
/sys/block/dm-9/size
/sys/block/dm-9/stat
/sys/block/dm-9/subsystem -> ../../block
/sys/block/dm-9/uevent
/sys/block/dm-9/slaves
/sys/block/dm-9/slaves/dm-1 -> ../../../block/dm-1
/sys/block/dm-9/slaves/dm-1/dev
/sys/block/dm-9/slaves/dm-1/holders
/sys/block/dm-9/slaves/dm-1/range
/sys/block/dm-9/slaves/dm-1/removable
/sys/block/dm-9/slaves/dm-1/size
/sys/block/dm-9/slaves/dm-1/stat
/sys/block/dm-9/slaves/dm-1/subsystem -> ../../block
/sys/block/dm-9/slaves/dm-1/uevent
/sys/block/dm-9/slaves/dm-1/slaves
/sys/block/dm-9/slaves/dm-1/slaves/sda3 ../../../block/sda/sda3
/sys/block/dm-9/slaves/dm-1/slaves/sda3/dev
/sys/block/dm-9/slaves/dm-1/slaves/sda3/holders
/sys/block/dm-9/slaves/dm-1/slaves/sda3/size
/sys/block/dm-9/slaves/dm-1/slaves/sda3/start
/sys/block/dm-9/slaves/dm-1/slaves/sda3/stat
/sys/block/dm-9/slaves/dm-1/slaves/sda3/subsystem -> ../../../block
/sys/block/dm-9/slaves/dm-1/slaves/sda3/uevent

When parsing this tree, mkinitrd tries to cd to
/sys/block/dm-9/slaves/dm-1/slaves/sda3/slaves, which doesn't exist.

Comment 2 Ian Pilcher 2008-06-03 17:53:18 UTC

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