NO_ROOT: Create the METALOG directory on installworld/distributeworld.

When not using NO_ROOT the DESTDIR is implicitly created by the
distrib-dirs call.  However with NO_ROOT it is trying to write
to the METALOG right away before running distrib-dirs which
may fail.

Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Bryan Drewery 2016-03-04 22:36:56 +00:00
parent 57942836ce
commit bd6daf52d3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=296396

View File

@ -959,6 +959,7 @@ distributeworld installworld: _installcheck_world
cp $$libs $$progs ${INSTALLTMP}
cp -R $${PATH_LOCALE:-"/usr/share/locale"} ${INSTALLTMP}/locale
.if defined(NO_ROOT)
-mkdir -p ${METALOG:H}
echo "#${MTREE_MAGIC}" > ${METALOG}
.endif
.if make(distributeworld)