summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--distrib/miniroot/install.sub6
1 files changed, 5 insertions, 1 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index c1e580b7af3..e2622dd742d 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,4 +1,4 @@
-# $OpenBSD: install.sub,v 1.644 2011/07/09 03:12:24 ajacoutot Exp $
+# $OpenBSD: install.sub,v 1.645 2011/07/09 03:14:53 deraadt Exp $
# $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
#
# Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback
@@ -1974,6 +1974,10 @@ finish_up() {
)
echo "done."
+ # We may run some programs in chroot, and some of them might be
+ # dynamic. That is highly discouraged, but let us play it safe.
+ rm -f /mnt/var/run/ld.so.hints
+
populateusrlocal
[ -x /mnt/$MODE.site ] && /mnt/usr/sbin/chroot /mnt /$MODE.site