Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repart: respect SOURCE_DATE_EPOCH on mkdir_p_root #32502

Merged
merged 1 commit into from
May 7, 2024

Commits on May 6, 2024

  1. repart: respect SOURCE_DATE_EPOCH on mkdir_p_root

    This let's systemd-repart respect the `SOURCE_DATE_EPOCH` environment
    variable when creating directories in the local tree through `CopyFiles`
    or `MakeDirectories`.
    
    To do this, we pass a timestamp `ts` to `mkdir_p_root`, which it will
    use to fix up `mtime` and `atime` of the directory it creates as
    well as the `mtime` of the directory it creates the other directory *in*,
    as the `mtime` of the latter is modified when creating a directory in it.
    
    For the same reason, it also needs to fixup the `mtime` of the upper
    directory when copying a file into it through `CopyFiles`.
    
    If `SOURCE_DATE_EPOCH`, times are left as is. (`UTIME_OMIT`)
    msanft committed May 6, 2024
    Configuration menu
    Copy the full SHA
    f43b9e9 View commit details
    Browse the repository at this point in the history