mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 13:32:45 +00: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
@ -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 New Issue
Block a user