mirror of
https://github.com/sheumann/hush.git
synced 2024-11-05 21:04:56 +00:00
mount: "already mounted" msg appears only if -v
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
46a1477107
commit
8656676a21
@ -1999,10 +1999,12 @@ int mount_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
// "/" may have fsname of "/dev/root" while fstab
|
// "/" may have fsname of "/dev/root" while fstab
|
||||||
// says "/dev/something_else".
|
// says "/dev/something_else".
|
||||||
if (mp) {
|
if (mp) {
|
||||||
|
if (verbose) {
|
||||||
bb_error_msg("according to %s, "
|
bb_error_msg("according to %s, "
|
||||||
"%s is already mounted on %s",
|
"%s is already mounted on %s",
|
||||||
bb_path_mtab_file,
|
bb_path_mtab_file,
|
||||||
mp->mnt_fsname, mp->mnt_dir);
|
mp->mnt_fsname, mp->mnt_dir);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// ...mount this thing
|
// ...mount this thing
|
||||||
if (singlemount(mtcur, /*ignore_busy:*/ 1)) {
|
if (singlemount(mtcur, /*ignore_busy:*/ 1)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user