--- elwix/config/etc/rootfs/rc 2018/01/01 21:54:24 1.7.2.6 +++ elwix/config/etc/rootfs/rc 2018/07/06 00:23:20 1.7.2.7 @@ -2,7 +2,7 @@ # # Boot startup script for ELWIX RootFS ... # -# $Id: rc,v 1.7.2.6 2018/01/01 21:54:24 misho Exp $ +# $Id: rc,v 1.7.2.7 2018/07/06 00:23:20 misho Exp $ stty status '^T' @@ -21,6 +21,9 @@ export HOME PATH TERM BLOCKSIZE EDITOR PAGER ETCDEV="md1" ETCSIZE="8m" +VARDEV="md2" +VARSIZE="16m" + FRMDEV="md3" FRMSIZE="48m" FRMFILE="elwix-firmware.sys" @@ -96,6 +99,9 @@ mount_usr() echo "ELWIX>>> Firmware RootFS boot stage ..." +mount -ttmpfs tmpfs /tmp +mdmfs -s $VARSIZE -S -n $VARDEV /var + if test -c $ELWIX2; then BOOTSLICE=`kenv currdev` if test "${BOOTSLICE#disk0}" != "a:"; then @@ -103,26 +109,14 @@ if test -c $ELWIX2; then fi fi -if ! mount -o ro $ELWIX $FRMPATH; then - umount $FRMPATH +if ! mount -o ro $ELWIX $FRMPATH 1>/dev/null 2>&1; then + umount $FRMPATH 1>/dev/null 2>&1 fsck -y $ELWIX 1>/dev/null 2>&1 - if ! mount -o ro $ELWIX $FRMPATH; then - umount -f $FRMPATH + if ! mount -o ro $ELWIX $FRMPATH 1>/dev/null 2>&1; then + umount -f $FRMPATH 1>/dev/null 2>&1 fsck -f -y $ELWIX 1>/dev/null 2>&1 if ! mount -o ro $ELWIX $FRMPATH; then - failed_sysvol mount "system volume" - fi - fi -fi - -if ! mount -a; then - umount -A - fsck -y 1>/dev/null 2>&1 - if ! mount -a; then - umount -A -f - fsck -f -y 1>/dev/null 2>&1 - if ! mount -a; then - failed_sysvol mount "system volume" + failed_sysvol mount "storage volume" fi fi fi