mirror of
https://github.com/systemd/systemd.git
synced 2025-03-21 02:50:18 +03:00
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. (cherry picked from commit f26ded4e31b433d3bb6ee4dc3e02e28f7a1d223f)
This commit is contained in:
parent
0a7c3f3ba3
commit
bef269772c
@ -33,7 +33,6 @@ OutputDirectory=build/mkosi.output
|
||||
ToolsTree=default
|
||||
BuildDirectory=build/mkosi.builddir
|
||||
CacheDirectory=build/mkosi.cache
|
||||
BuildSourcesEphemeral=yes
|
||||
Incremental=yes
|
||||
|
||||
[Validation]
|
||||
|
@ -1,9 +1,10 @@
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
# Add a dependency on the build image unless NO_BUILD=1.
|
||||
# Add a dependency on the build image and make the build sources ephemeral unless NO_BUILD=1.
|
||||
|
||||
[Match]
|
||||
Environment=!NO_BUILD=1
|
||||
|
||||
[Config]
|
||||
Dependencies=build
|
||||
BuildSourcesEphemeral=yes
|
||||
|
Loading…
x
Reference in New Issue
Block a user