summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdinstall
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2011-04-05 03:09:44 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2011-04-05 03:09:44 +0000
commitbf61104672c63d4afdc1c9f86a9701bfa502657f (patch)
treed460a4f63a42eaa19627c26d88b09c119d5ada88 /usr.sbin/bsdinstall
parent9ce8e5e965cc84f57a07513a707a7ba96fdb681f (diff)
downloadFreeBSD-src-bf61104672c63d4afdc1c9f86a9701bfa502657f.zip
FreeBSD-src-bf61104672c63d4afdc1c9f86a9701bfa502657f.tar.gz
Improve logging by always sending stderr to the installation log file.
Reduce warnings by making sure the temporary etc directory exists.
Diffstat (limited to 'usr.sbin/bsdinstall')
-rwxr-xr-xusr.sbin/bsdinstall/bsdinstall4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/bsdinstall/bsdinstall b/usr.sbin/bsdinstall/bsdinstall
index 04223d0..236dbac 100755
--- a/usr.sbin/bsdinstall/bsdinstall
+++ b/usr.sbin/bsdinstall/bsdinstall
@@ -38,5 +38,7 @@ if [ -z $VERB ]; then
VERB=auto
fi
-exec /usr/libexec/bsdinstall/$VERB $@
+test -d "$BSDINSTALL_TMPETC" || mkdir "$BSDINSTALL_TMPETC"
+echo Running installation step: $VERB $@ >> "$BSDINSTALL_LOG"
+exec /usr/libexec/bsdinstall/$VERB $@ 2>>"$BSDINSTALL_LOG"
OpenPOWER on IntegriCloud