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

[PATCH rhel6-branch] Do not ask for interface twice in stage 1 (#594802)



Happens exactly in this case:
- *no* ks over network
- stage2 over network
- updates over network
Before fetching updates dialog to choose network device appears
even if network has been enabled before downloading stage 2.

The patch sets flag loaderData->netDev_set to true after sucessful
network enablement for stage 2 fetching.
---
 loader/loader.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/loader/loader.c b/loader/loader.c
index 63594d8..8c6bb8b 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -1507,6 +1507,8 @@ static char *doLoaderMain(struct loaderData_s *loaderData,
                 }
 
                 writeEnabledNetInfo(&iface);
+                /* Prevent asking about interface for updates.img */
+                loaderData->netDev_set = 1;
                 step = STEP_STAGE2;
                 dir = 1;
                 break;
-- 
1.6.0.6


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