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)
Jun 16 2026, 12:50 AM
Unknown Object (File)
Jun 15 2026, 11:34 AM
Unknown Object (File)
Jun 12 2026, 2:49 PM
Unknown Object (File)
Jun 5 2026, 5:16 AM
Unknown Object (File)
May 25 2026, 1:28 PM
Unknown Object (File)
May 25 2026, 12:59 AM
Unknown Object (File)
May 23 2026, 3:01 PM
Unknown Object (File)
May 22 2026, 11:41 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 53252
Build 50143: arc lint + arc unit