From bd6daf52d3fdb92b518ed0484a32337e09dd6790 Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Fri, 4 Mar 2016 22:36:56 +0000 Subject: [PATCH] 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 --- Makefile.inc1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.inc1 b/Makefile.inc1 index 0842356f63f9..d4f1bfdbd822 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -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)