Date: Wed, 03 Feb 2010 17:58:33 +0100 From: Goran Lowkrantz <glz@hidden-powers.com> To: current@freebsd.org Subject: Q: Building release in jail? Message-ID: <0217C80176ED4ABCC821312F@[10.255.253.2]>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0217C80176ED4ABCC821312F>