--- elwix/config/etc/rootfs/rc 2016/12/15 14:32:50 1.6.8.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.6.8.1 2016/12/15 14:32:50 misho Exp $ +# $Id: rc,v 1.6.8.2 2016/12/20 14:40:20 misho Exp $ stty status '^T' @@ -89,8 +89,17 @@ mount_usr() echo "ELWIX>>> Firmware RootFS boot stage ..." -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"