From: Malte Poll Date: Thu, 24 Aug 2023 14:50:00 +0000 (+0200) Subject: propagate SOURCE_DATE_EPOCH when calling systemd-repart X-Git-Tag: v16~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70aaa960a107c8bbc132957ebc811c4c6bfe840c;p=thirdparty%2Fmkosi.git propagate SOURCE_DATE_EPOCH when calling systemd-repart --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 7d98cf1ec..bd39ec8d9 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -1721,6 +1721,8 @@ def make_image(state: MkosiState, skip: Sequence[str] = [], split: bool = False) for option, value in state.config.environment.items(): if option.startswith("SYSTEMD_REPART_MKFS_OPTIONS_"): env[option] = value + if option == "SOURCE_DATE_EPOCH": + env[option] = value with complete_step("Generating disk image"): output = json.loads(run(cmdline, stdout=subprocess.PIPE, env=env).stdout)