#!/bin/sh
#
# aryzhov@spasu.net
#
[ -z "$SID" ] && SID=/tmp/install_config
[ X$SubrIsRead = XYes ] || . $SID/Scripts/Misc/!Includes/Subroutines
[ X$VarsAreSet = XYes ] || SetJVars
SetRootOpts ; [ X$ROOT != X/ ] && exec Chroot_Script $0 $*

set -x
# metainit d31 1 1 c1t2d0s4 || StartShell Metainit1
# metainit d32 1 1 c2t3d0s4 || StartShell Metainit2
# sleep 10
# sync
# zpool create -f -m /space space raidz /dev/md/dsk/d31 /dev/md/dsk/d32 || StartShell Zpool

for i in /umount/*; do umount $i; done
cp /etc/vfstab /etc/vfstab.std
grep -v /umount/ </etc/vfstab.std >/etc/vfstab

zpool create -f -m /space space raidz `echo \`awk '/raidz space/ {print $2}' $SI_PROFILE\`` || StartShell Zpool

# StartShell JustoTesta
