summaryrefslogtreecommitdiff
path: root/docs/ENVIRONMENT.md
diff options
context:
space:
mode:
authorJohannes Schauer Marin Rodrigues <josch@mister-muffin.de>2022-09-01 11:49:19 +0200
committerLennart Poettering <lennart@poettering.net>2022-09-02 07:17:25 +0200
commit3fa8a1148a46b40b2a7ebac4007a95b4d0abab17 (patch)
tree65bd4892ef4bf4ffeafb0965a73ebd7d146627fc /docs/ENVIRONMENT.md
parentdddec402defcdb36fcb95e44a7ea582dfcc5a5c4 (diff)
downloadsystemd-3fa8a1148a46b40b2a7ebac4007a95b4d0abab17.tar.gz
sysusers: make sp_lstchg shadow field reproducible
If the environment variable SOURCE_DATE_EPOCH is set, use its value instead of the current time.
Diffstat (limited to 'docs/ENVIRONMENT.md')
-rw-r--r--docs/ENVIRONMENT.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/ENVIRONMENT.md b/docs/ENVIRONMENT.md
index 62e064e12b..e229edc2aa 100644
--- a/docs/ENVIRONMENT.md
+++ b/docs/ENVIRONMENT.md
@@ -310,6 +310,16 @@ All tools:
subvolumes if the backing filesystem supports them. If set to `0`, these
lines will always create directories.
+`systemd-sysusers`
+
+* `SOURCE_DATE_EPOCH` — if unset, the field of the date of last password change
+ in `/etc/shadow` will be the number of days from Jan 1, 1970 00:00 UTC until
+ today. If SOURCE_DATE_EPOCH is set to a valid UNIX epoch value in seconds,
+ then the field will be the number of days until that time instead. This is to
+ support creating bit-by-bit reproducible system images by choosing a
+ reproducible value for the field of the date of last password change in
+ `/etc/shadow`. See: https://reproducible-builds.org/specs/source-date-epoch/
+
`systemd-sysv-generator`:
* `$SYSTEMD_SYSVINIT_PATH` — Controls where `systemd-sysv-generator` looks for