Building Cross Compiler and u-boot
Ian Lepore
ian at freebsd.org
Thu Mar 19 13:19:22 UTC 2015
On Wed, 2015-03-18 at 23:53 -0700, Russell Haley wrote:
> Hi Tim,
>
> In case you care, I was able to rebuild world from within my jail as
> root but just didn't realize it worked? When I do uname -a it still
> returns as running 10.1-Release (which is my PCBSD version I
> think???). I've come to this conclusion because I created a new jail
> with the CURRENT snapshot from the FTP site, and I still get the same
> result:
>
> root at current:/usr/include # uname -a
> FreeBSD current.example.org 10.1-RELEASE-p17 FreeBSD 10.1-RELEASE-p17
> #0: Wed Feb 25 19:37:57 UTC 2015
> root at amd64-builder.pcbsd.org:/usr/obj/usr/src/sys/GENERIC amd64
>
> Is there a way to tell what my world/rootfs (sorry, what's the
> correct term?) is from within the jail?
uname gets its info from the kernel so even in a jail you get the kernel
version unless you've used the jail setup parms to override the version
reported within the jail (a feature that's only available on -current
right now).
You can use 'uname -U' to report on the version number that was in
in /usr/include/osreldate.h when uname was compiled, which is about the
closest you can get to "what version is this userland" I think. (I
guess you can also look in /usr/include/osreldate.h within the jail.)
-- Ian
More information about the freebsd-arm
mailing list