[pkg-cryptsetup-devel] Bug#488271: cryptsetup: use a loop to wait for the root device

Markus Mandalka debian at mandalka.name
Sun Sep 21 21:19:18 UTC 2008


I needed a solution for a live-system-setup that has to boot from
dm-crypt/luks-encrypted usb-devices (more about the live-system at
http://mandalka.name/privatix/ ...), so i copied some code into a quick
and dirty workarround-script which i use for my live-system-setups until
after the discussion and development there will be a solution in the
cryptsetup-package or/and initrd-package.

Maybe it can help some people getting here using a searchengine and
reading this thread because they need a solution before this issue will
be solved:

Because cryptroot waits until all other scripts in
initramfs/scripts/local-top/ are finished, this workarround needs no
patches. It has to be copied into the ramdisk (copy
http://mandalka.name/privatix/source/cryptrootwait to
/usr/share/initramfs-tools/scripts/local-top/, make it executable (chmod
+x cryptrootwait) and start update-initramfs or mkinitramfs to get it
into the initramdisk).

This workarround works in a "standard usb-cryptroot-setup" like my or
for example configurations made by the debian-installer if you choose
the guided encryption-setup there, but it won't help if your setup needs
the activate_evms() or activate_vg() - functions in
scripts/local-top/cryptroot !





More information about the pkg-cryptsetup-devel mailing list