From b6f2207737d5b5b2e5f5a8b490e6ed52c16ebce6 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 18 Jan 2026 18:56:30 -0600 Subject: Add timestamp header to install-archzfs.log --- TODO.org | 2 +- custom/install-archzfs | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/TODO.org b/TODO.org index 1194fea..79676cd 100644 --- a/TODO.org +++ b/TODO.org @@ -33,7 +33,7 @@ This would make SSH access easier without needing to find the IP address. Already have avahi package installed - just need to configure/enable it. -** TODO [#C] Add date/timestamp to install-archzfs.log +** DONE [#C] Add date/timestamp to install-archzfs.log Add a date/timestamp header to /tmp/install-archzfs.log when the installer starts. This helps identify when an installation was run when reviewing logs later. diff --git a/custom/install-archzfs b/custom/install-archzfs index 0f1e45f..1da4b51 100755 --- a/custom/install-archzfs +++ b/custom/install-archzfs @@ -49,6 +49,13 @@ NO_ENCRYPT="no" # Skip ZFS encryption (for testing only) LOGFILE="/tmp/install-archzfs.log" exec > >(tee -a "$LOGFILE") 2>&1 +# Log header with timestamp +echo "" +echo "================================================================================" +echo "install-archzfs started @ $(date +'%Y-%m-%d %H:%M:%S')" +echo "================================================================================" +echo "" + info() { echo "[INFO] $1"; } warn() { echo "[WARN] $1"; } error() { echo "[ERROR] $1"; exit 1; } -- cgit v1.2.3