CentOS Bug Tracker
CentOS Website

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002914 [CentOS-5] mkinitrd major always 2008-06-26 05:22 2009-02-07 19:20
Reporter glynreade View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version 5.2
Summary 0002914: mkinitrd fails with encrypted filesystems
Description I have some systems that have been running CentOS 5.1, but with encrypted filesystems. After 5.2 was released (but without trying to do an explicit upgrade), yum picked up mkinitrd-5.1.19.6-28. During the update process (which was driven via a cron job running "yum -y update"), I noticed that mkinitrd was pegging the cpu and yum appeared stalled. After killing mkinitrd, yum completed but the newly installed kernel (2.6.18-92.1.1.el5) was not reflected in grub.conf.

Running mkinitrd manually showed the following diagnostic just before the cpu gets pegged:

/sbin/mkinitrd: line 368: cd: slaves: No such file or directory

(the line number may be off). This appears to be closely related to https://bugzilla.redhat.com/show_bug.cgi?id=439371 [^] which was a bug fixed in this release of mkinitrd.

One one of the servers, the encrypted filesystem is set up via /etc/crypttab, and resides on a mirrored md device. On another (a laptop), all filesystems except for /boot reside on a single encrypted device (LVM on LUKS), as described at http://www.gno.org/~gdr/sysadmin/centos/5.1/crypto-disk.html [^]

I've attached a patch which solves the issue. This patch comes in three chunks. Only the first chunk is necessary to solve the problem with the "official" crypto setup via /etc/crypttab. The second and third chunks are necessary for the laptop-type config described above. For those interested, the environment variables in the third chunk come from /etc/sysconfig/mkinitrd/crypto-root:

   MODULES="$MODULES aes sha256 dm_crypt"
   # Do NOT use the /dev/disk/by-* hierarchies here
   CRYPTO_ROOT_DEV="/dev/hda2"
   CRYPTO_ROOT_MAP="PV0"

I would have reported this upstream, but I don't have access to the RHEL bugzilla.
Additional Information
Tags No tags attached.
Attached Files ? file icon mkinitrd.patch-centos52 [^] (974 bytes) 2008-06-26 05:22

- Relationships

-  Notes
(0007483)
glynreade (reporter)
2008-06-26 05:43

Cross reference https://bugzilla.redhat.com/show_bug.cgi?id=447841 [^]
(0008682)
RobertPHeller (reporter)
2009-02-07 19:20

I get this error when trying to install CentOS 5.2 on LVM file systems. Since I don't have a running CentOS 5.x system (I do have CentOS 4.7 running), how can I get past this problem?

- Issue History
Date Modified Username Field Change
2008-06-26 05:22 glynreade New Issue
2008-06-26 05:22 glynreade Assigned To => kbsingh@karan.org
2008-06-26 05:22 glynreade File Added: mkinitrd.patch-centos52
2008-06-26 05:43 glynreade Note Added: 0007483
2008-06-26 13:11 AlanBartlett Issue Monitored: AlanBartlett
2009-02-07 19:20 RobertPHeller Note Added: 0008682


Copyright © 2000 - 2009 Mantis Group
Powered by Mantis Bugtracker