diff options
author | 2014-11-11 21:31:29 +0000 | |
---|---|---|
committer | 2014-11-11 21:31:29 +0000 | |
commit | 15764e2418044a461720ea87e8170d192ed8d306 (patch) | |
tree | 624df6127df61d0aa32c8553ef147a35b4089936 | |
parent | Update to tzdata2014j from ftp.iana.org (diff) | |
download | wireguard-openbsd-15764e2418044a461720ea87e8170d192ed8d306.tar.xz wireguard-openbsd-15764e2418044a461720ea87e8170d192ed8d306.zip |
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@
-rw-r--r-- | distrib/miniroot/install.sub | 4 |
1 files changed, 2 insertions, 2 deletions
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} |