Improve logging by always sending stderr to the installation log file.

Reduce warnings by making sure the temporary etc directory exists.
This commit is contained in:
Nathan Whitehorn 2011-04-05 03:09:44 +00:00
parent 57af65d401
commit 786d77f45c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=220350

View File

@ -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"