Q: Building release in jail?

From: Goran Lowkrantz <glz_at_hidden-powers.com>
Date: Wed, 03 Feb 2010 17:58:33 +0100
Hi,

Tried this over on questions but no takers. So I try it here:

I am trying to get a working release build environment in a jail but it 
fails because the release script needs to mount devfs in the chrooted build 
environment and the md devices used to build the images.

I have set the following syscontrols
vfs.usermount=1
security.jail.mount_allowed=1
security.jail.chflags_allowed=1

but still can't mount inside the jail.

I tried with delegating the chroot filesystem to the jail using zfs jail 
and can mount it within the jail (but not umount it???) but still can't 
mount the md devices on this jaild filesystem.

My filesystem setup is with the jail root at /usr/jails/release/ where the 
startup scripts put a restricted devfs on /usr/jails/release/dev. I put my 
CVS copy at /home/ncvs (/usr/jails/release/usr/home/ncvs) and the chroot 
target at /home/release/8/dev (/usr/jails/release/usr/home/release/8). I 
managed to mount a devfs on /usr/jails/release/usr/home/release/8/dev from 
outside the jail after the release make had started as a workaround but 
whatever I did, mounting md-devices on /mnt (/usr/home/release/8/mnt) 
(/usr/jails/release/usr/home/release/8/mnt) always failed.

Is it possible to build a release in a jail? What am I missing?

/glz

---
Never attribute to malice what can adequately be explained by incompetence.
Received on Wed Feb 03 2010 - 16:14:18 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:00 UTC