Blame SOURCES/coidracut5.patch

7dd7e2
diff --git a/systemd/coreos-installer-generator b/systemd/coreos-installer-generator
7dd7e2
index 2b85dc5..75ab3c3 100755
7dd7e2
--- a/systemd/coreos-installer-generator
7dd7e2
+++ b/systemd/coreos-installer-generator
7dd7e2
@@ -39,6 +39,11 @@ karg_bool() {
7dd7e2
     esac
7dd7e2
 }
7dd7e2
 
7dd7e2
+# if we're not running in dracut, skip
7dd7e2
+if [ -z "$(karg edge.liveiso)" ]; then
7dd7e2
+    exit 0
7dd7e2
+fi
7dd7e2
+
7dd7e2
 if [ -n "$(karg coreos.inst.install_dev)" ]; then
7dd7e2
 #    ln -sf "/usr/lib/systemd/system/coreos-installer-post.target" \
7dd7e2
 #        "${UNIT_DIR}/basic.target"