summaryrefslogtreecommitdiff
path: root/distrib/miniroot
diff options
context:
space:
mode:
authorRobert Peichaer <rpe@cvs.openbsd.org>2014-04-19 18:31:25 +0000
committerRobert Peichaer <rpe@cvs.openbsd.org>2014-04-19 18:31:25 +0000
commitbe8deedb177d5fda86286a4149d2d022caa911ff (patch)
tree67cb1ba5662bdf6edcfcbcc804e31d78ddbbd5b3 /distrib/miniroot
parent8a6862861fe25a0a5ddc6a09a3e84289884e17aa (diff)
populateusrlocal() is used only once in finish_up(). Just fold it in there.
OK krw@ halex@
Diffstat (limited to 'distrib/miniroot')
-rw-r--r--distrib/miniroot/install.sub13
1 files changed, 5 insertions, 8 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 46a6d1e47af..76034cdb6f4 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,4 +1,4 @@
-# $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.
@@ -1808,12 +1808,6 @@ donetconfig() {
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
@@ -1968,7 +1962,10 @@ finish_up() {
# 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