summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Graichen <graichen@cvs.openbsd.org>1997-05-12 11:26:23 +0000
committerThomas Graichen <graichen@cvs.openbsd.org>1997-05-12 11:26:23 +0000
commitf14348016fff3aec4620c53a280f81ba529060e1 (patch)
tree57592dd6144fc49c266bd0da4e181406faa7fe76
parentd20f20c87277e48559172504ebb7d51c9db3abfd (diff)
run ldconfig on the created simpleroot where required
-rw-r--r--distrib/simpleroot/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/distrib/simpleroot/Makefile b/distrib/simpleroot/Makefile
index 02383488695..b40c540dca8 100644
--- a/distrib/simpleroot/Makefile
+++ b/distrib/simpleroot/Makefile
@@ -45,6 +45,9 @@ all:
sed "/^VERSION=/s/=.*/=${REV}/" < ${.CURDIR}/install.sub \
> ${MOUNT_POINT}/install.sub
cp ${.CURDIR}/../${MACHINE}/install.md ${MOUNT_POINT}/install.md
+.if exists(/sbin/ldconfig)
+ /usr/sbin/chroot ${MOUNT_POINT} /sbin/ldconfig
+.endif
( cd ${MOUNT_POINT} && \
tar cf - .??* * | ${GZIP} ${GZIPFLAGS} \
> ${IMAGEDIR}/simpleroot${REV}.tar${GZIPEXT} )