Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cbsd jconstruct-tui can't set the ver #43

Closed
beyondcreed opened this issue May 4, 2015 · 2 comments
Closed

cbsd jconstruct-tui can't set the ver #43

beyondcreed opened this issue May 4, 2015 · 2 comments
Assignees

Comments

@beyondcreed
Copy link

Hello,

it seems ver cannot be set to something like 10.0, it always forces 10.1-RELEASE as we need to have different releases available in multiple jails.

when we set 10.0 it does

Please wait: this will take a while...
Applying skel dir template from: /usr/local/jails/share/FreeBSD-jail-skel
First running pkg. Bootstrapping...
pkg: [bootstrap...Ok]
Updating FreeBSD repository catalogue...
Fetching meta.txz: 100% 944 B 0.9kB/s 00:01
Fetching packagesite.txz: 100% 5 MiB 5.3MB/s 00:01
Processing entries: 100%
FreeBSD repository update completed. 23912 packages processed.

To edit jail properties use: cbsd jconfig jname=api3
Creating api3 complete: Enjoy!

then we cbsd start api3 and cbsd jlogin api3 just to see

FreeBSD 10.1-RELEASE (GENERIC) #0 r274401: Tue Nov 11 21:02:49 UTC 2014

which is not the correct version, any ideas?

@olevole olevole self-assigned this May 10, 2015
@olevole
Copy link
Member

olevole commented May 10, 2015

Can you provide result of this command in master node:

mount -t nullfs | grep basejail

And this one, inside jail (after jlogin):

file -s /bin/sh

@olevole
Copy link
Member

olevole commented May 16, 2015

Update:

Support for kernel version spoofed was intoduced in FreeBSD 11-HEAD: https://svnweb.freebsd.org/base?view=revision&revision=r279361

FreeBSD versions before r279361 and CBSD <10.1.5 will display version of your node - it is FreeBSD issue. However, CBSD is to mount the correct version of the base - you can see it in the commands that I have written before. In addition, further, CBSD in make.conf file uses some workaround described in

grep -A28 ^20140930 /usr/ports/CHANGES

@olevole olevole closed this as completed Jul 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants