From 0d22b726150846d293d53924a6c33a03a54f8a4c Mon Sep 17 00:00:00 2001 From: Fabian Deutsch Date: Tue, 1 Dec 2015 09:34:00 +0100 Subject: [PATCH] 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 --- src/sbin/livemedia-creator | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sbin/livemedia-creator b/src/sbin/livemedia-creator index 9c2b5042..98b76c7b 100755 --- a/src/sbin/livemedia-creator +++ b/src/sbin/livemedia-creator @@ -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.")