logo

bootstrap-initrd

Linux initrd to bootstrap from a small binary seed git clone https://anongit.hacktivis.me/git/bootstrap-initrd.git/
commit: 213b121fb796ef9a136a7701a79074ef8aee9156
parent 95fbcd2658097e7c011dba997d24887a56cb9631
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 22 Mar 2026 02:39:15 +0100

make-root.sh: Use last commit time for setdate

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
X-Contrib-Policy: CONTRIBUTING.md 2026-03-12

Diffstat:

Mmake-root.sh9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/make-root.sh b/make-root.sh @@ -171,9 +171,16 @@ nobody:x:65534: nogroup:x:65533: EOF +last_mod="$Format:%cI$" +case "$last_mod" in + *format:*) + commit_time=$(git show --format='%cI' HEAD || echo 2026-03-21T18:52:34+01:00) + ;; +esac + cat >etc/setdate.sh <<EOF #!/bin/sh -exec date -f %Y-%m-%dT%TZ $(date +%Y-%m-%dT%TZ) +exec date -f %Y-%m-%dT%TZ ${last_mod} EOF chmod +x etc/setdate.sh