Bug 209628 - freebsd-update upgrade broken in jail
Summary: freebsd-update upgrade broken in jail
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.3-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-18 22:20 UTC by Leif Pedersen
Modified: 2019-01-17 23:16 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Leif Pedersen 2016-05-18 22:20:52 UTC
`freebsd-update upgrade` looks at `uname -r` instead of `freebsd-version`. When running in a jail, this results in the error "freebsd-update: Cannot upgrade from 10.3-RELEASE to itself".

This can be worked around by setting UNAME_r=`freebsd-version`. However, this is an unnecessary complication, and there's no clear path to discover this since one must look in the uname man page for problems with freebsd-update.
Comment 1 Gerald Aryeetey 2019-01-17 17:14:02 UTC
The "--currently-running" also exists so one could do "freebsd-update --currently-running `freebsd-version`" which is decently documented.
Comment 2 Leif Pedersen 2019-01-17 23:16:59 UTC
(In reply to Gerald Aryeetey from comment #1)
True, thanks, that's a better work-around. Still, it seems obvious that it should default to what's actually installed, which is easily determined by `freebsd-version`. `uname` is often not what's actually installed.