#! /bin/sh
#

PATH=/sbin:/bin

. /etc/rc.conf

if [ -f /etc/cgd/cgd.conf ]; then
	echo "Configuring CGD devices."
	cgdconfig -C
fi

echo "Starting file system checks:"
fsck -p

echo "Mounting all filesystems..."
mount -a

echo "Setting sysctl variables:"
sysctl -w init.root=${chroot_mount}

exit 0
