Page MenuHomeFreeBSD

bectl: make mount subcommand less verbose
ClosedPublic

Authored by rew on Aug 23 2023, 8:24 AM.
Tags
None
Referenced Files
F157305737: D41562.diff
Wed, May 20, 4:35 AM
Unknown Object (File)
Mon, May 18, 2:26 AM
Unknown Object (File)
Mon, May 18, 2:26 AM
Unknown Object (File)
Mon, May 18, 2:18 AM
Unknown Object (File)
Mon, May 4, 7:39 PM
Unknown Object (File)
Wed, Apr 29, 3:17 PM
Unknown Object (File)
Wed, Apr 29, 3:09 PM
Unknown Object (File)
Wed, Apr 29, 9:35 AM

Details

Summary
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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable