[Bug 240757] freebsd-update: Add upgradesready and showconfig commands, new exit codes
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Sep 22 19:29:37 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240757
Bug ID: 240757
Summary: freebsd-update: Add upgradesready and showconfig
commands, new exit codes
Product: Base System
Version: CURRENT
Hardware: Any
URL: https://reviews.freebsd.org/D21473
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs at FreeBSD.org
Reporter: grembo at FreeBSD.org
CC: emaste at freebsd.org
(was originally part of Bug #239997)
While debugging the issue mentioned in Bug #239997, I added a `showconfig'
command which I found useful enough to leave it in and document it in the man
page.
Like discussed somewhere else, I also added an `updatesready' command that can
be used to check if there are any pending fetched updates that can be
installed. It exits on status code 2 in case there aren't any pending updates
so that if one can tell apart exit 1 (=error) from it (right now there is no
code path for that, but if more checks are added in the future this could be
useful).
Finally, I changed the exit code of freebsd-update install in case there are no
updates pending to be installed and there wasn't a fetch phase to 2 - this
should allow future scripts to differentiate between "error" and "nothing to be
done" without breaking existing jail managers like ezjail and iocell.
See also:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239997
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240177
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list