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)
Mon, Oct 13, 2:38 AM
Unknown Object (File)
Mon, Oct 13, 2:38 AM
Unknown Object (File)
Mon, Oct 13, 2:38 AM
Unknown Object (File)
Mon, Oct 13, 2:02 AM
Unknown Object (File)
Sun, Oct 12, 2:44 PM
Unknown Object (File)
Sep 6 2025, 6:28 AM
Unknown Object (File)
Aug 11 2025, 1:27 PM
Unknown Object (File)
Jul 15 2025, 7:50 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 Not Applicable
Unit
Tests Not Applicable