From 54cf61415c6a6e69af1781e54097caf1296e960e Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Mon, 20 May 2013 21:16:38 +0000 Subject: [PATCH] Fix distributekernel in the non NO_ROOT case. PR: conf/178775 Submitted by: Garrett Cooper --- Makefile.inc1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile.inc1 b/Makefile.inc1 index 548d440b08f3..33feadbc7335 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1032,8 +1032,10 @@ distributekernel distributekernel.debug: ${IMAKE_MTREE} PATH=${TMPPATH} ${MAKE} KERNEL=${INSTKERNNAME} \ DESTDIR=${INSTALL_DDIR:S://:/:g:C:/$::}/kernel \ ${.TARGET:S/distributekernel/install/} +.if defined(NO_ROOT) sed -e 's|^./kernel|.|' ${DESTDIR}/${DISTDIR}/kernel.premeta > \ ${DESTDIR}/${DISTDIR}/kernel.meta +.endif .for _kernel in ${BUILDKERNELS:S/${INSTALLKERNEL}//} .if defined(NO_ROOT) echo "#${MTREE_MAGIC}" > ${DESTDIR}/${DISTDIR}/kernel.${_kernel}.premeta