Page MenuHomeFreeBSD

bectl: make mount subcommand less verbose
ClosedPublic

Authored by rew on Aug 23 2023, 8:24 AM.
Tags
None
Referenced Files
F172777366: D41562.diff
Sun, Sep 20, 10:22 PM
Unknown Object (File)
Sat, Sep 5, 5:06 AM
Unknown Object (File)
Fri, Sep 4, 10:59 AM
Unknown Object (File)
Sat, Aug 29, 10:18 PM
Unknown Object (File)
Aug 14 2026, 6:16 PM
Unknown Object (File)
Aug 14 2026, 6:16 PM
Unknown Object (File)
Aug 14 2026, 6:15 PM
Unknown Object (File)
Aug 12 2026, 3:52 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