Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Sep 2019 19:29:36 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 240757] freebsd-update: Add upgradesready and showconfig commands, new exit codes
Message-ID:  <bug-240757-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240757

            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@FreeBSD.org
          Reporter: grembo@FreeBSD.org
                CC: emaste@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 m=
an
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 updat=
es
so that if one can tell apart exit 1 (=3Derror) 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 ar=
e 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 t=
o be
done" without breaking existing jail managers like ezjail and iocell.

See also:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239997
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240177

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240757-227>