[Bug 242709] freebsd-update updatesready always returns 2

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Dec 18 14:52:18 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=242709

            Bug ID: 242709
           Summary: freebsd-update updatesready always returns 2
           Product: Base System
           Version: 12.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: maxfiedler1988 at gmail.com

When running "freebsd-update fetch":
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching metadata signature for 12.1-RELEASE from update1.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.
The following files will be updated as part of updating to
12.1-RELEASE-p1:
...

But when running "freebsd-update updatesready" the output is:
No updates are available to install.

The correct output should be "There are updates available to install."

As far as I can tell the cause is the fact that the script is not using the
full path for the compared files.

When altering line 3345 in /usr/sbin/freebsd-update to the following:

    if ! [ -L ${WORKDIR}/${BDHASH}-install ]; then

the check is successful and is reporting available updates.

The only way for the script to run currently is from inside
/var/db/freebsd-update/ as pwd.

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


More information about the freebsd-bugs mailing list