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)
Sat, Apr 12, 2:29 PM
Unknown Object (File)
Fri, Apr 11, 4:02 PM
Unknown Object (File)
Feb 23 2025, 2:18 PM
Unknown Object (File)
Feb 15 2025, 5:11 PM
Unknown Object (File)
Feb 15 2025, 4:34 PM
Unknown Object (File)
Feb 15 2025, 8:39 AM
Unknown Object (File)
Feb 4 2025, 3:36 AM
Unknown Object (File)
Jan 29 2025, 11: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