From b6a8b134bb2c2b0b34196644e26726497a3ca6c0 Mon Sep 17 00:00:00 2001 From: Robert Peichaer Date: Tue, 11 Nov 2014 21:31:30 +0000 Subject: Store autoinstaller logfile in /mnt/var/log to be available after reboot and to cope with an upcoming change to /var/tmp. Noted by and OK halex@ OK deraadt@ --- distrib/miniroot/install.sub | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'distrib') diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 97b7612e0b8..7d356233bb2 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,4 +1,4 @@ -# $OpenBSD: install.sub,v 1.797 2014/10/26 23:31:00 krw Exp $ +# $OpenBSD: install.sub,v 1.798 2014/11/11 21:31:29 rpe Exp $ # # Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback # All rights reserved. @@ -2178,7 +2178,7 @@ elif [[ -z $respfile ]]; then if [[ -f /ai.done ]]; then # Generate unique filename and let rc.firsttime feed it to # whatever mail system we have at hand by then. - while _lf=/mnt/var/tmp/ai.log.$RANDOM && test -e $_lf; do done + while _lf=/mnt/var/log/ai.log.$RANDOM && test -e $_lf; do done cp /ai.log $_lf chmod 600 $_lf _lf=${_lf#/mnt} -- cgit v1.2.3