mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 14:26:03 -04:00
bectl: make mount subcommand less verbose
The mount subcommand currently produces output such as:
# bectl mount <bootenv>
Successfully mounted <bootenv> at <mountpoint>
This commit changes it to only print the mountpoint:
# bectl mount <bootenv>
<mountpoint>
This makes it easier to script the mount subcommand. If an error occurs
while mounting, an error message is printed to stderr and bectl will
exit with a non-zero value.
PR: 273180
Reviewed by: kevans, asomers
Differential Revision: https://reviews.freebsd.org/D41562
This commit is contained in:
parent
0fd310c83c
commit
760987ecd3
1 changed files with 1 additions and 1 deletions
|
|
@ -440,7 +440,7 @@ bectl_cmd_mount(int argc, char *argv[])
|
|||
|
||||
switch (err) {
|
||||
case BE_ERR_SUCCESS:
|
||||
printf("Successfully mounted %s at %s\n", bootenv, result_loc);
|
||||
printf("%s\n", result_loc);
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr,
|
||||
|
|
|
|||
Loading…
Reference in a new issue