Don't call preprocessKickstart from within anaconda as well.
Since the loader is doing this now, we can just call it once there, then pass
the preprocessed file location into anaconda via the --kickstart parameter.
---
loader/kickstart.c | 10 +++++-----
loader/kickstart.h | 2 +-
loader/loader.c | 10 +++++++---
pyanaconda/kickstart.py | 9 +--------
4 files changed, 14 insertions(+), 17 deletions(-)
@@ -2139,7 +2140,7 @@ int main(int argc, char ** argv) {
if (!ksFile)
getKickstartFile(&loaderData);
if (FL_KICKSTART(flags))
- runKickstart(&loaderData, (ksFile)?ksFile:loaderData.ksFile);
+ outputKSFile = runKickstart(&loaderData, (ksFile)?ksFile:loaderData.ksFile);
}
if (FL_EARLY_NETWORKING(flags)) {
@@ -2255,9 +2256,12 @@ int main(int argc, char ** argv) {
*argptr++ = "--headless";
#endif
- if (FL_KICKSTART(flags)) {
+ /* Pass the local, preprocessed kickstart file to anaconda. There's no
+ * need for another fetch and another call to preprocessKickstart.
+ */
+ if (FL_KICKSTART(flags) && outputKSFile) {
*argptr++ = "--kickstart";
- *argptr++ = loaderData.ksFile;
+ *argptr++ = outputKSFile;
}