--- elwix/config/etc/rootfs/rc 2013/01/28 10:48:46 1.3.2.1 +++ elwix/config/etc/rootfs/rc 2016/12/20 14:40:20 1.6.8.2 @@ -2,7 +2,7 @@ # # Boot startup script for ELWIX RootFS ... # -# $Id: rc,v 1.3.2.1 2013/01/28 10:48:46 misho Exp $ +# $Id: rc,v 1.6.8.2 2016/12/20 14:40:20 misho Exp $ stty status '^T' @@ -19,7 +19,7 @@ PAGER=less export HOME PATH TERM BLOCKSIZE EDITOR PAGER FRMDEV="md1" -FRMSIZE="41m" +FRMSIZE="42m" FRMFILE="elwix-firmware.sys" FRMDEV2="md2" @@ -88,9 +88,18 @@ mount_usr() # echo "ELWIX>>> Firmware RootFS boot stage ..." -echo " RootFS: Mount ELWIX system volume" -fsck -y 1>/dev/null 2>&1 && mount -a || fsck -y 1>/dev/null 2>&1 && mount -a || \ - fsck -f -y 1>/dev/null 2>&1 && mount -a || failed_sysvol mount "system volume" + +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" + fi + fi +fi if test -c "$FIT2CF" -a -d "$CFDIR"; then echo " RootFS: Mount ELWIX flash volume"