FS#5510 - lvm encrypted root not working, initcpio, kernel-2.6.18

Attached to Project: Arch Linux
Opened by Vesa Kaihlavirta (vegai) - Tuesday, 03 October 2006, 08:17 GMT
Last edited by arjan timmerman (blaasvis) - Tuesday, 03 October 2006, 09:15 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture not specified
Severity Critical
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

[vegai@moria ~]$ cat bug
This old initramfs -equipped kernel works for me still:

# (0) Arch Linux
title Arch Linux, beyond kernel
root (hd0,0)
kernel /vmlinuz26beyond root=/dev/dm-0 ro
initrd /initramfs-beyond.img

whereas this does not:

# (0) Arch Linux
title Arch Linux
root (hd0,0)
kernel /vmlinuz26 root=/dev/dm-0 ro
initrd /kernel26.img

This latter one is kernel-2.6.18 from current, with mkinitcpio.

My mkinitcpio's HOOKS:

HOOKS="base udev autodetect ide scsi sata filesystems encrypt"

Hooks lvm and lvm2 don't exist anymore, so adding those makes mkinitcpio obviously
complain about them. And when booting, lvm nor device-mapper seem to be loaded.

I've tried several roots on the grub config, and the most promising was
root=/dev/sda3, where my encrypted partition is supposed to be. This gives the
following in boot:

:: Running Hook [encrypt]
device-mapper: ioctl: ...
mknod: No such file or directory - /dev/mapper/control

So, either device-mapper is not included with the image, or it is not autodetected,
making mounting an lvm/device-mapped encrypted root impossible to mount.


This task depends upon

Closed by  Tobias Powalowski (tpowa)
Wednesday, 04 October 2006, 13:57 GMT
Reason for closing:  Not a bug
Comment by Tobias Powalowski (tpowa) - Tuesday, 03 October 2006, 12:57 GMT
[tobias@Wohnung ~]$ pacman -Qo /lib/initcpio/install/lvm2
/lib/initcpio/install/lvm2 is owned by lvm2 2.02.10-1

seems pacman lost the file during update please reinstall lvm2

Loading...