[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#391664: partman-auto-crypto: Some questions and issues



Hi all,

On Tue, Oct 10, 2006 at 01:51:34AM +0200, David Härdeman wrote:
> The loop is there because it needs to look not for the $dev device but 
> the virtual device-mapper device which has been created ontop of the 
> device pointed to by $dev after the crypto_setup step. It should be a 
> bit smarter and make sure the virtual-$dev <-> $dev mapping is correct 
> though....and it should probably exit the loop once that is 
> established...but I don't think the loop can be removed...

Just a quick thought before I rush to work: Couldn't we use the
$part/crypt_active file after crypto_setup?

  part=$(dev_to_devdir $dev)
  [ -f $part/crypt_active) ] || problem
  cryptdev=$(cat $part/crypt_active)
  cryptdevdir=$(dev_to_devdir $cryptdev)

cheers,
Max



Reply to: