summaryrefslogtreecommitdiff
path: root/distrib/miniroot/install.sub
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2000-03-19 01:14:04 +0000
committerMarc Espie <espie@cvs.openbsd.org>2000-03-19 01:14:04 +0000
commitaea326ecda37a805ae1e5f239e4a50de97a980ce (patch)
treef6c78fabc7e586a3bd5c9dad69f2fccc70b7b6cf /distrib/miniroot/install.sub
parenta5009d6a3b45df6207a7b90a5d6191f01cc194e9 (diff)
populateusrlocal: create the right hierarchy under /usr/local
right before unmounting the new system. Beats having mtree files around every package...
Diffstat (limited to 'distrib/miniroot/install.sub')
-rw-r--r--distrib/miniroot/install.sub8
1 files changed, 7 insertions, 1 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub
index 038d74084ec..4fc201e0510 100644
--- a/distrib/miniroot/install.sub
+++ b/distrib/miniroot/install.sub
@@ -1,5 +1,5 @@
#!/bin/sh
-# $OpenBSD: install.sub,v 1.148 2000/02/25 01:39:13 krw Exp $
+# $OpenBSD: install.sub,v 1.149 2000/03/19 01:14:03 espie Exp $
# $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $
#
# Copyright (c) 1997,1998 Todd Miller, Theo de Raadt
@@ -2205,3 +2205,9 @@ __network_config_2
;;
esac
}
+
+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
+}