Skip to content

Commit

Permalink
mkfs-util: propagate SOURCE_DATE_EPOCH to mcopy
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
  • Loading branch information
2 people authored and bluca committed Aug 29, 2023
1 parent 599a312 commit 4947de2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/mkfs-util.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ static int do_mcopy(const char *node, const char *root) {
if (r == 0) {
/* Avoid failures caused by mismatch in expectations between mkfs.vfat and mcopy by disabling
* the stricter mcopy checks using MTOOLS_SKIP_CHECK. */
execve(mcopy, argv, STRV_MAKE("MTOOLS_SKIP_CHECK=1"));
execve(mcopy, argv, STRV_MAKE("MTOOLS_SKIP_CHECK=1", strv_find_prefix(environ, "SOURCE_DATE_EPOCH=")));

log_error_errno(errno, "Failed to execute mcopy: %m");

Expand Down

0 comments on commit 4947de2

Please sign in to comment.