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)
Sun, Jan 18, 7:35 AM
Unknown Object (File)
Nov 22 2025, 1:07 AM
Unknown Object (File)
Oct 26 2025, 4:35 AM
Unknown Object (File)
Oct 24 2025, 12:00 AM
Unknown Object (File)
Oct 13 2025, 2:38 AM
Unknown Object (File)
Oct 13 2025, 2:38 AM
Unknown Object (File)
Oct 13 2025, 2:38 AM
Unknown Object (File)
Oct 13 2025, 2:02 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