Permalink
Browse files

Don't parse NO_ROOT metadata for extra kernels if NO_ROOT isn't defined.

Approved by:	re (gjb)
MFC after:	1 week
  • Loading branch information...
1 parent 669071c commit b23486b24466dd2035799adb12dacdeaae033bce @bsdjhb bsdjhb committed Sep 24, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 Makefile.inc1
View
@@ -1089,9 +1089,11 @@ distributekernel distributekernel.debug:
KERNEL=${INSTKERNNAME}.${_kernel} \
DESTDIR=${INSTALL_DDIR}/kernel.${_kernel} \
${.TARGET:S/distributekernel/install/}
+.if defined(NO_ROOT)
sed -e 's|^./kernel|.|' \
${DESTDIR}/${DISTDIR}/kernel.${_kernel}.premeta > \
${DESTDIR}/${DISTDIR}/kernel.${_kernel}.meta
+.endif
.endfor
packagekernel:

0 comments on commit b23486b

Please sign in to comment.