On Mon, 11 Dec 2006 10:59:24 +0100 (CET)
David Härdeman <[EMAIL PROTECTED]> wrote:

> could you please provide me with your /etc/crypttab,

croot   /dev/evms/root  none            luks
chome   /dev/evms/home  /etc/keys/home  luks
cusr    /dev/evms/usr   /etc/keys/usr   luks
cspool  /dev/evms/spool /etc/keys/spool luks
cswap   /dev/evms/swap  /dev/urandom    swap


> /etc/fstab,

proc               /proc      proc   defaults             0 0
tmpfs              /dev/shm   tmpfs  defaults             0 0
tmpfs              /tmp       tmpfs  size=128m,mode=1777  0 0
/dev/evms/hda2     /boot      ext3   defaults             0 1
/dev/evms/var      /var       ext3   defaults             0 2
/dev/mapper/croot  /          ext3   defaults             0 1
/dev/mapper/cswap  none       swap   sw                   0 0
/dev/mapper/chome  /home      ext3   defaults             0 2
/dev/mapper/cusr   /usr       ext3   defaults             0 2
/dev/mapper/cspool /var/spool ext3   defaults             0 2

> a
> list of your boot parameters

/boot/boot/grub/menu.lst contains

title           Debian GNU/Linux, kernel 2.6.18.2
root            (hd0,1)
kernel          /vmlinuz-2.6.18.2 root=/dev/evms/root quiet ro
initrd          /initrd.img-2.6.18.2
savedefault

> and a description of your setup (I
> assume you use a combination of evms and crypto?)

Yes, I'm using evms volumes, some of them are encrypted with
cryptsetup, but I'm having the same problem on another machine without
evms (same configuration except for device names /dev/evms/* that are
substituded by /dev/hd??). When the boot fails and I am on a busybox
shell, I can do
mount /dev/mapper/croot /root -t ext3
and then the boot process continues correctly.

All works correctly if I patch 
/usr/share/initramfs-tools/scripts/local-top/cryptroot and
/usr/share/initramfs-tools/scripts/local respectively with the 2
patches in attachment (copied from earlier versions of cryptsetup and
initramfs-tools).



--- /usr/share/initramfs-tools/scripts/local-top/cryptroot.old	2006-11-28 19:05:19.000000000 +0100
+++ /usr/share/initramfs-tools/scripts/local-top/cryptroot	2006-12-11 17:44:12.000000000 +0100
@@ -222,6 +222,8 @@
 	done
 
 	if [ $count -lt 3 ]; then
+		# init can now pick up new FSTYPE, FSSIZE and ROOT
+		echo "ROOT=\"$NEWROOT\"" >> /conf/param.conf
 		return 0
 	else
 		echo "cryptsetup: maximum number of tries exceeded"
--- /usr/share/initramfs-tools/scripts/local.old	2006-10-17 09:26:59.000000000 +0200
+++ /usr/share/initramfs-tools/scripts/local	2006-12-11 17:48:00.000000000 +0100
@@ -7,6 +7,10 @@
 	run_scripts /scripts/local-top
 	[ "$quiet" != "y" ] && log_end_msg
 
+	if [ -r /conf/param.conf ]; then
+		. /conf/param.conf
+	fi
+
 	# If the root device hasn't shown up yet, give it a little while
 	# to deal with removable devices
 	if [ ! -e "${ROOT}" ]; then

Attachment: signature.asc
Description: PGP signature

Reply via email to