aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2016-03-04 22:36:56 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2016-03-04 22:36:56 +0000
commitbd6daf52d3fdb92b518ed0484a32337e09dd6790 (patch)
tree0b77cf7f82348233d386af6e5531c5023e09f7a8 /Makefile.inc1
parent57942836ce03eb547bbcd383c9d64c1d0a3d1ea6 (diff)
downloadsrc-bd6daf52d3fdb92b518ed0484a32337e09dd6790.tar.gz
src-bd6daf52d3fdb92b518ed0484a32337e09dd6790.zip
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
Notes
Notes: svn path=/head/; revision=296396
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc11
1 files changed, 1 insertions, 0 deletions
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)