Skip to content

Commit f26ded4

Browse files
committed
mkosi: Only make build sources ephemeral if NO_BUILD is not enabled
If we're not building distribution packages from source, there's no need to make the build sources ephemeral so don't enable the setting if NO_BUILD is enabled.
1 parent 2063484 commit f26ded4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mkosi.conf

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ OutputDirectory=build/mkosi.output
3333
ToolsTree=default
3434
BuildDirectory=build/mkosi.builddir
3535
CacheDirectory=build/mkosi.cache
36-
BuildSourcesEphemeral=yes
3736
Incremental=yes
3837

3938
[Validation]

mkosi.conf.d/20-build.conf

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# SPDX-License-Identifier: LGPL-2.1-or-later
22

3-
# Add a dependency on the build image unless NO_BUILD=1.
3+
# Add a dependency on the build image and make the build sources ephemeral unless NO_BUILD=1.
44

55
[Match]
66
Environment=!NO_BUILD=1
77

88
[Config]
99
Dependencies=build
10+
BuildSourcesEphemeral=yes

0 commit comments

Comments
 (0)