mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
vmimage.subr: Redirect etcupdate log to stdout
While we're here, send the etcupdate log from generating base.txz to stdout instead of /dev/null (see e972e408d19a) as well. Reviewed by: emaste, gordon, jrtc27 MFC after: 1 week Sponsored by: Amazon Differential Revision: https://reviews.freebsd.org/D48719 (cherry picked from commit ace4637ee0c666c6f5a1c664f8956f7302234edd)
This commit is contained in:
parent
f284154896
commit
1dbcd9a15c
2 changed files with 3 additions and 2 deletions
|
|
@ -142,7 +142,7 @@ base.txz:
|
|||
sh ${WORLDDIR}/usr.sbin/etcupdate/etcupdate.sh extract -B \
|
||||
-m "${MAKE}" -M "TARGET_ARCH=${TARGET_ARCH} TARGET=${TARGET}" \
|
||||
-s ${WORLDDIR} -d "${.OBJDIR}/${DISTDIR}/base/var/db/etcupdate" \
|
||||
-L /dev/null ${NO_ROOT:D-N}
|
||||
-L /dev/stdout ${NO_ROOT:D-N}
|
||||
.if defined(NO_ROOT)
|
||||
echo "./var/db/etcupdate type=dir uname=root gname=wheel mode=0755" >> ${.OBJDIR}/${DISTDIR}/base.meta
|
||||
sed -n 's,^\.,./var/db/etcupdate/current,p' ${.OBJDIR}/${DISTDIR}/base/var/db/etcupdate/current/METALOG \
|
||||
|
|
|
|||
|
|
@ -60,7 +60,8 @@ vm_install_base() {
|
|||
mkdir -p ${DESTDIR}/var/db/etcupdate
|
||||
etcupdate extract -B \
|
||||
-M "TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH}" \
|
||||
-s ${WORLDDIR} -d ${DESTDIR}/var/db/etcupdate
|
||||
-s ${WORLDDIR} -d ${DESTDIR}/var/db/etcupdate \
|
||||
-L /dev/stdout
|
||||
sh ${WORLDDIR}/release/scripts/mm-mtree.sh -m ${WORLDDIR} \
|
||||
-F "TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH}" \
|
||||
-D ${DESTDIR}
|
||||
|
|
|
|||
Loading…
Reference in a new issue