Re: [PATCH 1/3] Fix DeviceTree cleanup w/ inactive luks devs in cmdline mode.

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

 



> diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
> index 214f577..a3ddde2 100644
> --- a/pyanaconda/storage/devicetree.py
> +++ b/pyanaconda/storage/devicetree.py
> @@ -1074,22 +1074,18 @@ class DeviceTree(object):
>              passphrase = self.__luksDevs.get(device.format.uuid)
>              if passphrase:
>                  device.format.passphrase = passphrase
> +            elif self._cleanup:
> +                # if we're only building the devicetree so that we can
> +                # tear down all of the devices we don't need a passphrase
> +                if device.format.status and self._cleanup:

Just a nit - you've already checked self._cleanup above, you don't need
to do so again here.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux