1*f63a8c0aSJohn Baldwin#!/bin/sh 2*f63a8c0aSJohn Baldwin#- 3*f63a8c0aSJohn Baldwin# Copyright (c) 2011 Nathan Whitehorn 4*f63a8c0aSJohn Baldwin# All rights reserved. 5*f63a8c0aSJohn Baldwin# 6*f63a8c0aSJohn Baldwin# Redistribution and use in source and binary forms, with or without 7*f63a8c0aSJohn Baldwin# modification, are permitted provided that the following conditions 8*f63a8c0aSJohn Baldwin# are met: 9*f63a8c0aSJohn Baldwin# 1. Redistributions of source code must retain the above copyright 10*f63a8c0aSJohn Baldwin# notice, this list of conditions and the following disclaimer. 11*f63a8c0aSJohn Baldwin# 2. Redistributions in binary form must reproduce the above copyright 12*f63a8c0aSJohn Baldwin# notice, this list of conditions and the following disclaimer in the 13*f63a8c0aSJohn Baldwin# documentation and/or other materials provided with the distribution. 14*f63a8c0aSJohn Baldwin# 15*f63a8c0aSJohn Baldwin# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16*f63a8c0aSJohn Baldwin# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17*f63a8c0aSJohn Baldwin# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18*f63a8c0aSJohn Baldwin# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19*f63a8c0aSJohn Baldwin# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20*f63a8c0aSJohn Baldwin# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21*f63a8c0aSJohn Baldwin# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22*f63a8c0aSJohn Baldwin# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23*f63a8c0aSJohn Baldwin# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24*f63a8c0aSJohn Baldwin# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25*f63a8c0aSJohn Baldwin# SUCH DAMAGE. 26*f63a8c0aSJohn Baldwin# 27*f63a8c0aSJohn Baldwin 28*f63a8c0aSJohn BaldwinBSDCFG_SHARE="/usr/share/bsdconfig" 29*f63a8c0aSJohn Baldwin. $BSDCFG_SHARE/common.subr || exit 1 30*f63a8c0aSJohn Baldwin 31*f63a8c0aSJohn Baldwin# User might want a shell and require devfs, so mount it 32*f63a8c0aSJohn Baldwinmkdir $BSDINSTALL_CHROOT/dev 2>/dev/null 33*f63a8c0aSJohn Baldwinmount -t devfs devfs $BSDINSTALL_CHROOT/dev 34*f63a8c0aSJohn Baldwin 35*f63a8c0aSJohn Baldwin# If installing from the DVD, mount packages where they'll be accessible 36*f63a8c0aSJohn Baldwinif [ -d /packages ]; then 37*f63a8c0aSJohn Baldwin mkdir -p $BSDINSTALL_CHROOT/dist/packages 38*f63a8c0aSJohn Baldwin mount -t nullfs /packages $BSDINSTALL_CHROOT/dist/packages 39*f63a8c0aSJohn Baldwinfi 40