Bug 258918 - "freebsd-update fetch install" skips the install phase without a clear warning
Summary: "freebsd-update fetch install" skips the install phase without a clear warning
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 11.4-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-04 11:43 UTC by martin
Modified: 2021-10-04 18:55 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description martin 2021-10-04 11:43:37 UTC
Due to FreeBSD 11.4 EoL, "freebsd-update fetch install" emits a warning in the fetch phase and then exits without running the install phase.  Running "freebsd-update fetch" followed by "freebsd-update install" works.

# env PAGER=/bin/cat freebsd-update fetch install
Looking up update.FreeBSD.org mirrors... 2 mirrors found.
Fetching metadata signature for 11.4-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
11.4-RELEASE-p13:
/bin/freebsd-version
/boot/kernel/linux.ko
/boot/kernel/linux64.ko
/lib/libcasper.so.0
/lib/libcrypto.so.8
...
WARNING: FreeBSD 11.4-RELEASE-p9 HAS PASSED ITS END-OF-LIFE DATE.
Any security issues discovered after Thu Sep 30 01:00:00 BST 2021
will not have been corrected.
# ls -l /bin/freebsd-version
-r-xr-xr-x  1 root  wheel  3418 May 23 21:44 /bin/freebsd-version
# env PAGER=/bin/cat freebsd-update install
Installing updates...Scanning //usr/share/certs/blacklisted for certificates...
Scanning //usr/share/certs/trusted for certificates...
Scanning //usr/local/share/certs for certificates...
 done.
# ls -l /bin/freebsd-version
-r-xr-xr-x  1 root  wheel  3419 Sep 30 09:29 /bin/freebsd-version
#
Comment 1 Ed Maste freebsd_committer 2021-10-04 18:55:32 UTC
Yes, at the very least it should inform the user that the install was not done, but really I think the install should proceed despite the warning.

We'll also need to determine what the return code should be. Off hand I am not sure of the "freebsd-update fetch" return code for an EOL branch.