-# $OpenBSD: install.sub,v 1.760 2014/04/19 16:50:52 rpe Exp $
+# $OpenBSD: install.sub,v 1.761 2014/04/19 18:31:24 rpe Exp $
#
# Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback
# All rights reserved.
fi
}
-populateusrlocal() {
- if [ -f /mnt/etc/mtree/BSD.local.dist ]; then
- /mnt/usr/sbin/chroot /mnt /usr/sbin/mtree -Uedqn -p /usr/local -f /etc/mtree/BSD.local.dist >/dev/null
- fi
-}
-
apply()
{
if [[ $sshd == n ]]; then
# dynamic. That is highly discouraged, but let us play it safe.
rm -f /mnt/var/run/ld.so.hints
- populateusrlocal
+ if [ -f /mnt/etc/mtree/BSD.local.dist ]; then
+ /mnt/usr/sbin/chroot /mnt /usr/sbin/mtree -Uedqn -p /usr/local \
+ -f /etc/mtree/BSD.local.dist >/dev/null
+ fi
[ -x /mnt/$MODE.site ] && /mnt/usr/sbin/chroot /mnt /$MODE.site