Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archiso/mkarchiso
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2022-08-26 11:36:03 +0200
committerChristian Hesse <mail@eworm.de>2022-08-26 14:46:59 +0200
commitaef242720d8d17bdaf56fd573fff3c02ccc062cb (patch)
tree8f3455bacd5eff283c1c0acab373502557751052 /archiso/mkarchiso
parenta2e886b4b92de99304264e8305af98bce3818b59 (diff)
mkarchiso: touch clock-epoch for extra hint on date and time
This helps on systems with screwed or broken RTC.
Diffstat (limited to 'archiso/mkarchiso')
-rwxr-xr-xarchiso/mkarchiso5
1 files changed, 5 insertions, 0 deletions
diff --git a/archiso/mkarchiso b/archiso/mkarchiso
index 04c1e52..5f0c79b 100755
--- a/archiso/mkarchiso
+++ b/archiso/mkarchiso
@@ -1590,6 +1590,11 @@ _make_version() {
[[ ! -e "${_os_release}" ]] || sed -i '/^IMAGE_ID=/d;/^IMAGE_VERSION=/d' "${_os_release}"
printf 'IMAGE_ID=%s\nIMAGE_VERSION=%s\n' "${iso_name}" "${iso_version}" >> "${_os_release}"
fi
+
+ # Touch /usr/lib/clock-epoch to give another hint on date and time
+ # for systems with screwed or broken RTC.
+ touch -m -d"@${SOURCE_DATE_EPOCH}" -- "${pacstrap_dir}/usr/lib/clock-epoch"
+
_msg_info "Done!"
}