File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,17 +21,17 @@ actual=$(mkosi --version | awk '{print $2}' | cut -d. -f1)
2121}
2222export SOURCE_DATE_EPOCH=${SOURCE_DATE_EPOCH:- $(git -C " $ROOT " log -1 --format=% ct)}
2323export TZ=UTC LC_ALL=C
24+ # A production invocation reconstructs the tools tree once from the immutable
25+ # snapshot, then shares that read-only environment across all requested flavors
26+ # or both legs of repro-check.
27+ if [[ $action != dev-image ]]; then
28+ mkosi --directory " $SELF " clean -f
29+ fi
2430
2531build_one () {
2632 local out=$1 work=$2 flavor=$3
2733 local kstage=" $work /kernel-stage" tree=" $work /rootfs"
2834 rm -rf " $work " " $out " ; mkdir -p " $out "
29- # Production builds reconstruct the tools tree from the immutable snapshot;
30- # no previously generated build environment is trusted.
31- if [[ $action != dev-image ]]; then
32- mkosi --directory " $SELF " clean -f
33- fi
34-
3535 mkosi_args=(
3636 --directory " $SELF "
3737 --force
You can’t perform that action at this time.
0 commit comments