right before unmounting the new system.
Beats having mtree files around every package...
#!/bin/sh
-# $OpenBSD: install.sh,v 1.69 1999/10/16 19:01:21 deraadt Exp $
+# $OpenBSD: install.sh,v 1.70 2000/03/19 01:14:03 espie Exp $
# $NetBSD: install.sh,v 1.5.2.8 1996/08/27 18:15:05 gwr Exp $
#
# Copyright (c) 1997,1998 Todd Miller, Theo de Raadt
dd if=/mnt/dev/urandom of=/mnt/var/db/host.random bs=1024 count=64 >/dev/null 2>&1
chmod 600 /mnt/var/db/host.random >/dev/null 2>&1
+populateusrlocal
unmount_fs /tmp/fstab.shadow
#!/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
;;
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
+}
#!/bin/sh
-# $OpenBSD: upgrade.sh,v 1.11 1999/10/08 03:54:14 millert Exp $
+# $OpenBSD: upgrade.sh,v 1.12 2000/03/19 01:14:03 espie Exp $
# $NetBSD: upgrade.sh,v 1.2.4.5 1996/08/27 18:15:08 gwr Exp $
#
# Copyright (c) 1996 The NetBSD Foundation, Inc.
md_installboot ${ROOTDISK}
)
+populateusrlocal
unmount_fs /tmp/fstab.shadow