From ba531e97a0079af921698a04adeed3f737f7d3f0 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Tue, 5 Apr 2016 16:15:30 -0700 Subject: [PATCH] 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. (cherry picked from commit 607d7c1eebbef2b16179734650576c4eddf14e4d) --- src/sbin/livemedia-creator | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/sbin/livemedia-creator b/src/sbin/livemedia-creator index d2bbc7ae..6989247e 100755 --- a/src/sbin/livemedia-creator +++ b/src/sbin/livemedia-creator @@ -1404,6 +1404,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 = []