--- elwix/config/etc/rootfs/rc 2013/08/05 13:10:17 1.6 +++ 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.6 2013/08/05 13:10:17 misho Exp $ +# $Id: rc,v 1.6.8.2 2016/12/20 14:40:20 misho Exp $ stty status '^T' @@ -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"