[anaconda 4/6] Skip networkInitialize for image and dir installations

David Shea dshea at redhat.com
Wed Aug 6 19:38:49 UTC 2014


On 08/06/2014 03:22 PM, Brian C. Lane wrote:
> Assume that the network has been setup by the host system which could be
> a desktop, a minimal system or a mock chroot.
> ---
>   pyanaconda/network.py | 42 ++++++++++++++++++++++--------------------
>   1 file changed, 22 insertions(+), 20 deletions(-)
>
> diff --git a/pyanaconda/network.py b/pyanaconda/network.py
> index 9d589bd..77bbd9c 100644
> --- a/pyanaconda/network.py
> +++ b/pyanaconda/network.py
> @@ -1140,30 +1140,32 @@ def apply_kickstart(ksdata):
>       return applied_devices
>   
>   def networkInitialize(ksdata):
> +    if flags.imageInstall or flags.dirInstall:
> +        log.info("Skipping networkInitialize for image/dir installation")
> +        return

For this one, using flags.can_touch_runtime_system would make it both 
clearer and prettier.



More information about the anaconda-patches mailing list