hey linas, On 08/03/2010 Linas Žvirblis wrote: > I am using cryptsetup with lvm2 and encrypted logical volumes. The setup > was created during install with Debian Installer. The problem is that > sometimes it boot fine, but sometimes it dies like shown in boot > sequence transcript below. The passphrase is not being asked then. > > When it dies I just rerun the script manually, and continue with boot > sequence. To me it seems like some sort of race condition, but I was > unable to locate the problem.
i'm not sure whether this is a race condition. according to your boot process transcript, /etc/init.d/cryptdisks is invoked, and vg01-swap_crypt is unlocked, but vg01-home_crypt isn't. so you'll have to find out why vg01-home_crypt isn't unlocked at cryptdisks initscript. > A while ago the chances of booting properly were close to 50%, but > something in recent upgrades greatly reduced the odds, as I have not > managed to get a proper boot in like 10 reboots. that indeed sounds odd. maybe you could add some debugging code to the do_start() and handle_crypttab_line_start() functions from /lib/cryptsetup/cryptdisks.functions to see what causes vg01-home_crypt to be ignored. the fact that _nothing_ is printed to the commandline irritates me. you would get a warning if only the source device was missing. in case that you don't know any shell scripting, just tell me. i'll prepare cryptdisks.functions with debugging output for you in that case. but i'm rather busy right now, thus i don't know when i'll find time to do so. greetings, jonas
signature.asc
Description: Digital signature

