PDA

View Full Version : Dracut ignores encrypted root partition after kernel recompile


sandhuatfedora
4th September 2010, 02:38 AM
Hi,

I am running F13 (2.6.34.6-47.fc13.x86_64) on a Macbook Pro.

Downloaded and compiled 2.6.35.4 the usual way but at boot, dracut only seems to find swap partition and ignores root partition (both encrypted). Without encryption, recompile and boot works fine.

# cat /boot/grub/menu.lst
default=0
timeout=0
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.35.4)
root (hd0,0)
kernel /vmlinuz-2.6.35.4 ro root=/dev/mapper/luks-4461f229-c807-4773-a15f-758ec72b833d rd_LUKS_UUID=luks-4461f229-c807-4773-a15f-758ec72b833d rd_LUKS_UUID=luks-5de2a237-598e-4b75-9888-813f81545a90 rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us rdshell rdinitdebug
initrd /initramfs-2.6.35.4.img
title Fedora (2.6.34.6-47.fc13.x86_64)
root (hd0,0)
kernel /vmlinuz-2.6.34.6-47.fc13.x86_64 ro root=/dev/mapper/luks-4461f229-c807-4773-a15f-758ec72b833d rd_LUKS_UUID=luks-4461f229-c807-4773-a15f-758ec72b833d rd_LUKS_UUID=luks-5de2a237-598e-4b75-9888-813f81545a90 rd_NO_LVM rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us
initrd /initramfs-2.6.34.6-47.fc13.x86_64.img

#cat /etc/crypttab
luks-4461f229-c807-4773-a15f-758ec72b833d UUID=4461f229-c807-4773-a15f-758ec72b833d none
luks-5de2a237-598e-4b75-9888-813f81545a90 UUID=5de2a237-598e-4b75-9888-813f81545a90 none


# cat /etc/fstab
/dev/mapper/luks-4461f229-c807-4773-a15f-758ec72b833d / ext4 defaults 1 1
UUID=2457e9a2-8208-499a-bcb5-a8078692c56f /boot ext4 defaults 1 2
/dev/mapper/luks-5de2a237-598e-4b75-9888-813f81545a90 swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0


For 2.6.35.4, despite "rdshell rdinitdebug" I get no shell nor any debug info.

Manually creating a initramfs image using dracut creates an image that is 101M in size, vs. the 13M stock initramfs image or 15M for the one created by "make install" after kernel recompile.

Any pointers or help will be greatly appreciated.

Thanks!