Once we've parsed the kickstart file, raise an exception if
we still haven't been given any packages, groups or repos
Signed-off-by: Mark McLoughlin <markmc(a)redhat.com>
Index: livecd/creator/livecd-creator
===================================================================
--- livecd.orig/creator/livecd-creator
+++ livecd/creator/livecd-creator
@@ -312,6 +312,12 @@ class InstallationTarget:
self.ksparser.handler.packages.groupList))
self.epackages.extend(self.ksparser.handler.packages.excludedList)
+ if not self.packages and not self.groups:
+ raise InstallationError("No packages or groups specified")
+
+ if not self.repos:
+ raise InstallationError("No repositories specified")
+
def base_on_iso(self, base_on):
"""helper function to extract ext3 file system from a live CD
ISO"""
--
Show replies by date