[pkg-cryptsetup-devel] Bug#511840: initramfs-tools: Initrd fails to find root device after boot

schaarsc at gmx.de schaarsc at gmx.de
Mon Jun 1 19:24:49 UTC 2009


Hi,

from a user perspective the boot process is already too complicated, please 
don't add a dependency to the bootloader on top. 

"man initramfs-tools"
[...]
       init sets several variables for the boot scripts environment.

        ROOT  correponds to the root boot option.  Advanced boot scripts like 
cryptsetup or live-initramfs need to play tricks.  Otherwise
              keep it alone.
[...]

according to the man page something like the patch below should be ok:

--- scripts/local-top/cryptroot.org     2009-06-01 21:04:23.151755703 +0200
+++ scripts/local-top/cryptroot 2009-06-01 13:56:11.292580410 +0200
@@ -264,6 +264,7 @@
                fi

                message "cryptsetup: $crypttarget setup successfully"
+                echo "ROOT=$NEWROOT" >> /conf/param.conf
                break
        done


This is enough to make it work with lilo, no need to change /dev/root

Have a nice day
Christian





More information about the pkg-cryptsetup-devel mailing list