From b65f1ebc193a9dd4ad375f1545b167c8b61b90d8 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Wed, 29 Jan 2014 16:59:32 -0800 Subject: [PATCH] Check kickstart for repo line (#1005580) --- tools/livecd-creator | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/livecd-creator b/tools/livecd-creator index 67e3cec..a2919e6 100755 --- a/tools/livecd-creator +++ b/tools/livecd-creator @@ -174,6 +174,9 @@ def main(): logging.info("Using title '%s' and product '%s'" % (title, product)) ks = imgcreate.read_kickstart(options.kscfg) + if not ks.handler.repo.seen: + print >> sys.stderr, "Kickstart (%s) must have at least one repository." % (options.kscfg) + return 1 try: if options.image_type == 'livecd': -- 2.11.4.GIT