[anaconda 4/6] Skip networkInitialize for image and dir installations
Brian C. Lane
bcl at redhat.com
Wed Aug 6 21:17:18 UTC 2014
On Wed, Aug 06, 2014 at 03:38:49PM -0400, David Shea wrote:
> 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.
Hm, yeah. can_touch_runtime has touch_live so that would also work.
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
More information about the anaconda-patches
mailing list