summaryrefslogtreecommitdiffstats
path: root/mkosi.conf.d/20-build.conf
diff options
context:
space:
mode:
Diffstat (limited to 'mkosi.conf.d/20-build.conf')
-rw-r--r--mkosi.conf.d/20-build.conf9
1 files changed, 9 insertions, 0 deletions
diff --git a/mkosi.conf.d/20-build.conf b/mkosi.conf.d/20-build.conf
new file mode 100644
index 0000000..8c16d9b
--- /dev/null
+++ b/mkosi.conf.d/20-build.conf
@@ -0,0 +1,9 @@
+# SPDX-License-Identifier: LGPL-2.1-or-later
+
+# Add a dependency on the build image unless NO_BUILD=1.
+
+[Match]
+Environment=!NO_BUILD=1
+
+[Config]
+Dependencies=build