Not sure if upgrade to 11.3-RELEASE actually worked

nixuser

New Member


Messages: 5

I did an upgrade from 11.2-RELEASE to 11.3-RELEASE which appears to have worked.

Bash:
$ uname -a
FreeBSD bsd 11.3-RELEASE-p3 FreeBSD 11.3-RELEASE-p3 #0: Mon Aug 19 21:08:43 UTC 2019     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
$
However the os-release file looks wrong:

Bash:
$ cat /usr/local/etc/os-release
NAME=FreeBSD
VERSION=11.2-RELEASE-p13
VERSION_ID=11.2
ID=freebsd
ANSI_COLOR="0;31"
PRETTY_NAME="FreeBSD 11.2-RELEASE-p13"
CPE_NAME=cpe:/o:freebsd:freebsd:11.2
HOME_URL=https://freebsd.org/
BUG_REPORT_URL=https://bugs.freebsd.org
This makes me wonder if something went wrong. Anyone else experience this?
 

trev

Aspiring Daemon

Reaction score: 166
Messages: 799

/usr/local/etc/os-release is not part of the FreeBSD base system - it is installed by a port so is unaffected by a base operating system upgrade.

The tool for determining base OS kernel and userland versions is freebsd-version(1)
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 7,771
Messages: 30,912

What does pkg which /usr/local/etc/os-release tell you?
 

olli@

Well-Known Member
Developer

Reaction score: 361
Messages: 475

I did an upgrade from 11.2-RELEASE to 11.3-RELEASE which appears to have worked.

Bash:
$ uname -a
FreeBSD bsd 11.3-RELEASE-p3 FreeBSD 11.3-RELEASE-p3 #0: Mon Aug 19 21:08:43 UTC 2019     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
$
However the os-release file looks wrong:

Bash:
$ cat /usr/local/etc/os-release
...
As someone else wrote, the os-release is not part of FreeBSD. It's a Linuxism that some programs seem to depend on that originate from the Linux universe. On FreeBSD, the output of uname(1) is authoritative. So, apparently your update was successful.

To update the contents of the os-release file, rebuild sysutils/etc_os-release. Or run the file through sed -ix s/11.2/11.3/. Or edit it with your favorite text editor. Or just ignore it – It shouldn't make much of a difference.
 
Top