Page MenuHomeFreeBSD

bectl: make mount subcommand less verbose
ClosedPublic

Authored by rew on Aug 23 2023, 8:24 AM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 29 2024, 4:27 AM
Unknown Object (File)
Nov 29 2024, 4:27 AM
Unknown Object (File)
Nov 29 2024, 4:27 AM
Unknown Object (File)
Nov 29 2024, 4:07 AM
Unknown Object (File)
Sep 25 2024, 10:02 AM
Unknown Object (File)
Sep 22 2024, 10:50 AM
Unknown Object (File)
Sep 22 2024, 6:43 AM
Unknown Object (File)
Sep 21 2024, 8:24 PM

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 Skipped
Unit
Tests Skipped
Build Status
Buildable 53252
Build 50143: arc lint + arc unit