- if (singlemount(mtcur)) {
- // Don't whine about already mounted fs when mounting all.
- // Note: we should probably change return value to indicate
- // failure, without causing a duplicate error message.
- if (errno != EBUSY) bb_perror_msg("Mounting %s on %s failed",
- mtcur->mnt_fsname, mtcur->mnt_dir);
- rc = 0;
+ if (singlemount(mtcur, 1)) {
+ /* Count number of failed mounts */
+ rc++;