aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-01-18 18:56:30 -0600
committerCraig Jennings <c@cjennings.net>2026-01-18 18:56:30 -0600
commitb6f2207737d5b5b2e5f5a8b490e6ed52c16ebce6 (patch)
treeeb1c62bedbc58941999ec919136881c6d66183f1
parent031c6102f42184d8b6614695760fd11249b1c5f2 (diff)
downloadarchangel-b6f2207737d5b5b2e5f5a8b490e6ed52c16ebce6.tar.gz
archangel-b6f2207737d5b5b2e5f5a8b490e6ed52c16ebce6.zip
Add timestamp header to install-archzfs.log
-rw-r--r--TODO.org2
-rwxr-xr-xcustom/install-archzfs7
2 files changed, 8 insertions, 1 deletions
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; }