[PATCH] Print an error when the kickstart file is missing
David Shea
dshea at redhat.com
Fri Dec 5 22:33:38 UTC 2014
On 12/05/2014 05:26 PM, Brian C. Lane wrote:
> If --kickstart has been passed we should make sure it actually exists.
> If we don't the installation tries to continue but gets confused because
> automatedInstall has been set.
> ---
> anaconda | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/anaconda b/anaconda
> index 6707e33..70ff3fc 100755
> --- a/anaconda
> +++ b/anaconda
> @@ -1049,6 +1049,11 @@ if __name__ == "__main__":
> # shipped with the installation media.
> ksdata = None
> if opts.ksfile and not opts.liveinst:
> + if not os.path.exists(opts.ksfile):
> + stdoutLog.error("Kickstart file %s is missing.", opts.ksfile)
> + iutil.ipmi_report(constants.IPMI_ABORTED)
> + sys.exit(1)
> +
> flags.automatedInstall = True
> flags.eject = False
> ksFiles = [opts.ksfile]
Looks good.
More information about the anaconda-patches
mailing list