Page MenuHomeFreeBSD

bectl: make mount subcommand less verbose
ClosedPublic

Authored by rew on Aug 23 2023, 8:24 AM.
Tags
None
Referenced Files
F157529746: D41562.id.diff
Fri, May 22, 11:41 AM
Unknown Object (File)
Thu, May 21, 8:58 PM
Unknown Object (File)
Wed, May 20, 4:35 AM
Unknown Object (File)
Mon, May 18, 2:26 AM
Unknown Object (File)
Mon, May 18, 2:26 AM
Unknown Object (File)
Mon, May 18, 2:18 AM
Unknown Object (File)
Mon, May 4, 7:39 PM
Unknown Object (File)
Wed, Apr 29, 3:17 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