]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bectl: make mount subcommand less verbose
authorRobert Wing <rew@FreeBSD.org>
Wed, 23 Aug 2023 18:39:13 +0000 (10:39 -0800)
committerRobert Wing <rew@FreeBSD.org>
Wed, 23 Aug 2023 18:45:01 +0000 (10:45 -0800)
commit760987ecd39b54374aef40783b2c232997f3ac04
treeba64c7c7f5279ed42f7ed0d731db7807704b034e
parent0fd310c83c6b9d178d1bb4009a55bffdb1bd85c0
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
sbin/bectl/bectl.c