Patch from Jason Schoon to make mount -a not abort on the first failure.
This commit is contained in:
parent
0e413e53e9
commit
49159c7f94
@ -533,11 +533,13 @@ int mount_main(int argc, char **argv)
|
|||||||
|
|
||||||
// Mount this thing.
|
// Mount this thing.
|
||||||
|
|
||||||
rc = singlemount(mtcur);
|
if (singlemount(mtcur)) {
|
||||||
if (rc) {
|
|
||||||
// Don't whine about already mounted fs when mounting all.
|
// Don't whine about already mounted fs when mounting all.
|
||||||
if (errno == EBUSY) rc = 0;
|
// Note: we should probably change return value to indicate
|
||||||
else break;
|
// 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user