Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Mar 2015 07:18:53 -0600
From:      Ian Lepore <ian@freebsd.org>
To:        Russell Haley <russ.haley@gmail.com>
Cc:        Tim Kientzle <tim@kientzle.com>, freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: Building Cross Compiler and u-boot
Message-ID:  <1426771133.9902.11.camel@freebsd.org>
In-Reply-To: <CABx9NuSWJgM-Vfd4rGgpSHCsabWvi%2BBigfeUtoeBbJaUBY_5_g@mail.gmail.com>
References:  <CABx9NuQXb_FJMw%2BqwbaGuFX94LkEMRf_9kAuowk6ctYBEDQn=A@mail.gmail.com> <CALFUBVFVDLz=NCuTT5LTYm%2BCycW5C2GmcK6TB%2B7cdvG2zZHgKg@mail.gmail.com> <5505CD50.2050503@ambient-md.com> <CABx9NuRH7a5H2quHUiBAL6M%2BbHBqBP-jK9CbNCPOsjhJmtngGw@mail.gmail.com> <CABx9NuSyT2xdejw-p6sS=HGZgVB-fqWf1oK1gWHswy9hKvYDZw@mail.gmail.com> <E3580587-BD6C-4F63-A33F-5ABD88048C52@kientzle.com> <CABx9NuSDiMXD%2BMAC=OKwrHcRrT1Jzr7ADJ9_C5mQs14B-%2BDiQQ@mail.gmail.com> <B40A580E-3ED9-4957-891F-C3A244B9646D@kientzle.com> <CABx9NuRToRgV9KzwiNNePO6b42E=4sFzaJiCOAYrr_eb1bgpcw@mail.gmail.com> <CABx9NuSsJF_OBbtOvhM%2BNn4%2Bbs6t2Zs5JSGdg7dKUv8wHp%2B93Q@mail.gmail.com> <CABx9NuRhOBvNFPAHd4h9YkiQgi8Dih-M3C0Sgv5ABWmaKqXYNQ@mail.gmail.com> <CABx9NuSWJgM-Vfd4rGgpSHCsabWvi%2BBigfeUtoeBbJaUBY_5_g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1426771133.9902.11.camel>