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:
parent
3a8659e4e4
commit
0d22b72615
@ -1328,6 +1328,10 @@ def main():
|
|||||||
errors.append("Only url and nfs install methods are currently supported. Please "
|
errors.append("Only url and nfs install methods are currently supported. Please "
|
||||||
"fix your kickstart file." )
|
"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:
|
if ks.handler.displaymode.displayMode is not None:
|
||||||
errors.append("The kickstart must not set a display mode (text, cmdline, "
|
errors.append("The kickstart must not set a display mode (text, cmdline, "
|
||||||
"graphical), this will interfere with livemedia-creator.")
|
"graphical), this will interfere with livemedia-creator.")
|
||||||
|
Loading…
Reference in New Issue
Block a user