On Fri, 2013-12-13 at 12:10 -0500, Chris Lumens wrote:
> > - def doEncryptionPassphraseRetrofits(self):
> > - """ Add the global passphrase to all preexisting LUKS
devices.
> > -
> > - This establishes a common passphrase for all encrypted devices
> > - in the system so that users only have to enter one passphrase
> > - during system boot.
> > - """
> > - if not self.encryptionRetrofit:
> > - return
> > -
> > - for device in self.devices:
> > - if device.format.type == "luks" and \
> > - device.format._LUKS__passphrase != self.encryptionPassphrase:
> > - log.info("adding new passphrase to preexisting encrypted
"
> > - "device %s" % device.path)
> > - try:
> > - device.format.addPassphrase(self.encryptionPassphrase)
> > - except CryptoError:
> > - log.error("failed to add new passphrase to existing
"
> > - "device %s" % device.path)
> > -
>
> This seems to be still used by doIt @ line 311.
Nothing in blivet sets self.encryptionRetrofit = True, at least.
Right. It wasn't actually possible to trigger the code, but I have now
also removed the function call in my local tree here.
Good catch -- thanks.