aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcustom/install-archzfs2
-rwxr-xr-xscripts/test-install.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/custom/install-archzfs b/custom/install-archzfs
index 1da4b51..3ce29b3 100755
--- a/custom/install-archzfs
+++ b/custom/install-archzfs
@@ -46,7 +46,7 @@ ENABLE_SSH="yes" # Enable SSH with root login (default yes for headless)
NO_ENCRYPT="no" # Skip ZFS encryption (for testing only)
# Logging
-LOGFILE="/tmp/install-archzfs.log"
+LOGFILE="/tmp/install-archzfs-$(date +'%Y-%m-%d-%H-%M-%S').log"
exec > >(tee -a "$LOGFILE") 2>&1
# Log header with timestamp
diff --git a/scripts/test-install.sh b/scripts/test-install.sh
index fa5c431..f9b574e 100755
--- a/scripts/test-install.sh
+++ b/scripts/test-install.sh
@@ -248,7 +248,7 @@ verify_install() {
if [[ "$enable_ssh" == "yes" ]]; then
# Check if we can still SSH (install script reboots, so this won't work)
# Instead, check the install log for success indicators
- if ssh_cmd "grep -q 'Installation complete' /tmp/install-archzfs.log"; then
+ if ssh_cmd "grep -q 'Installation complete' /tmp/install-archzfs-*.log 2>/dev/null"; then
info "Install log shows success"
else
warn "Could not verify install log"
@@ -342,7 +342,7 @@ run_test() {
stop_vm "$config_name"
# Save logs
- ssh_cmd "cat /tmp/install-archzfs.log" > "$LOG_DIR/${config_name}-install.log" 2>/dev/null || true
+ ssh_cmd "cat /tmp/install-archzfs-*.log" > "$LOG_DIR/${config_name}-install.log" 2>/dev/null || true
cp "$SERIAL_LOG" "$LOG_DIR/${config_name}-serial.log" 2>/dev/null || true
cleanup_disks "$config_name"