livemedia-creator: Raise an error if url is used without networking

Because livemedia-creator is using a media based installation by default,
no networking is brought up automatically. If then the url installation
method is used, it fails with an unclear reason.

This patch adds a check to raise a clear error if the url installation
method is used insisde the kickstart but no networking is configured.

Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
This commit is contained in:
Fabian Deutsch 2015-12-01 09:34:00 +01:00 committed by Brian C. Lane
parent 3a8659e4e4
commit 0d22b72615
1 changed files with 4 additions and 0 deletions

View File

@ -1328,6 +1328,10 @@ def main():
errors.append("Only url and nfs install methods are currently supported. Please "
"fix your kickstart file." )
if ks.handler.method.method in ("url", "nfs") and not ks.handler.network.seen:
errors.append("The kickstart must activate networking if "
"the url or nfs install method is used.")
if ks.handler.displaymode.displayMode is not None:
errors.append("The kickstart must not set a display mode (text, cmdline, "
"graphical), this will interfere with livemedia-creator.")