From aef242720d8d17bdaf56fd573fff3c02ccc062cb Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 26 Aug 2022 11:36:03 +0200 Subject: mkarchiso: touch clock-epoch for extra hint on date and time This helps on systems with screwed or broken RTC. --- archiso/mkarchiso | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'archiso/mkarchiso') 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!" } -- cgit v1.2.3-70-g09d2