livemedia-creator: Make sure make-iso kickstart includes dracut-live

iso creation requires the dracut-live package, otherwise rebuilding the
initrd will crash. Since it takes a long time to discover let's fail
early.
This commit is contained in:
Brian C. Lane 2016-04-05 16:15:30 -07:00
parent bae111d5a3
commit 607d7c1eeb

View File

@ -1291,6 +1291,12 @@ def main():
ks = KickstartParser(ks_version, errorsAreFatal=False, missingIncludeIsFatal=False)
ks.readKickstart(opts.ks[0])
# live iso usually needs dracut-live so warn the user if it is missing
if opts.ks and opts.make_iso:
if "dracut-live" not in ks.handler.packages.packageList:
log.error("dracut-live package is missing from the kickstart.")
sys.exit(1)
# Make the disk or filesystem image
if not opts.disk_image and not opts.fs_image:
errors = []