hey, On 21/06/2010 Bjørn Mork wrote: > Bjørn Mork <[email protected]> writes: > > > bj...@nemi:/tmp$ diff -qarN good bad > > Files good/lib/cryptsetup/askpass and bad/lib/cryptsetup/askpass differ > > Files good/sbin/cryptsetup and bad/sbin/cryptsetup differ > > Files good/scripts/local-top/cryptroot and bad/scripts/local-top/cryptroot > > differ > > > > Which means that the difference must be in one of these three files. > > Most of this seems innocent, as there is no /bin/plymouth, but I'm > > wondering a bit about the last hunch here, what does it do?: > > Whatever it is, it is obviously OK. > > Since I'm booting a lot anyway tonight, I just tried replacing these > three files one by one to see which one makes a difference. And I > assume you will not be surprised when I say that it is sbin/cryptsetup. > > Replacing sbin/cryptsetup with the 2:1.1.0-2.1 version, while keeping > both scripts/local-top/cryptroot and lib/cryptsetup/askpass from > 2:1.1.2-1, creates a working initramfs.
thanks for the debugging, it saved me a lot of work. > But I have no clue why it isn't working. And hints on debugging that? yes, adding --debug to the commandline options of cryptsetup in initramfs would be a good start. see the attached patch. greetings, jonas
--- /usr/share/initramfs-tools/scripts/local-top/cryptroot +++ /usr/share/initramfs-tools/scripts/local-top/cryptroot @@ -269,10 +269,10 @@ done # Prepare commands - if /sbin/cryptsetup isLuks $cryptsource > /dev/null 2>&1; then - cryptcreate="/sbin/cryptsetup -T 1 luksOpen $cryptsource $crypttarget" + if /sbin/cryptsetup --debug isLuks $cryptsource > /dev/null 2>&1; then + cryptcreate="/sbin/cryptsetup --debug -T 1 luksOpen $cryptsource $crypttarget" else - cryptcreate="/sbin/cryptsetup -T 1 -c $cryptcipher -s $cryptsize -h $crypthash create $crypttarget $cryptsource" + cryptcreate="/sbin/cryptsetup --debug -T 1 -c $cryptcipher -s $cryptsize -h $crypthash create $crypttarget $cryptsource" fi cryptremove="/sbin/cryptsetup remove $crypttarget" NEWROOT="/dev/mapper/$crypttarget"
signature.asc
Description: Digital signature

