Re: Poudriere: Null-mount existing /usr/src folder for kernel sources

2013-11-14 Thread Beeblebrox
May I put this in as a feature request then? Something like:
/usr/local/etc/poudriere.d/jails/jailname/src
Insert folder-path to already existing source files on the system for each
build environment into this file. We probably can't use poudriere.conf
because we may have more than one src pool from different versions. The
folder-path will get null-mounted to build jails when poudriere is started
(just like /var/db/ports).

Regards.



-
FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS
--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/Poudriere-Null-mount-existing-usr-src-folder-for-kernel-sources-tp5860808p5861031.html
Sent from the freebsd-ports mailing list archive at Nabble.com.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Poudriere: Null-mount existing /usr/src folder for kernel sources

2013-11-13 Thread Bryan Drewery
On 11/13/2013 2:25 AM, Beeblebrox wrote:
 Some ports require kernel sources to build.
 On a system that has /usr/src already downloaded, how can one null-mount
 that folder into poudriere's build environment so that kernel sources are
 made available for the poudriere jails?
 These probably won't work:
 * fstab file and entry in build-jailname/etc/fstab
 * /etc/fstab.build-jailname on host
 * Adding entry to /usr/local/etc/poudriere.d/jails/build-jailname/fs
 
 I have not found any possible setting in poudriere.conf for this.
 
 
 
 -
 FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS


Poudriere already does this by default. It null mounts the jail's
/usr/src into the build jails as read-only.

-- 
Regards,
Bryan Drewery



signature.asc
Description: OpenPGP digital signature


Re: Poudriere: Null-mount existing /usr/src folder for kernel sources

2013-11-13 Thread Beeblebrox
Thank you Brian for the answer.
The problem is, the data is on host's /usr/src and the jail's /usr/src is
empty. If I were to first null-mount host's /usr/src onto jail's /usr/src, I
don't suppose poudriere would be able to null-mount a null-mount?



-
FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS
--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/Poudriere-Null-mount-existing-usr-src-folder-for-kernel-sources-tp5860808p5860838.html
Sent from the freebsd-ports mailing list archive at Nabble.com.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Poudriere: Null-mount existing /usr/src folder for kernel sources

2013-11-13 Thread Beeblebrox
While the null-mount of /var/db/ports onto /usr/local/etc/poudriere/options
gets transferred to the build jails by poudriere, the null-mount of /usr/src
onto poudriere-environment/usr/src (as expected) does not get propagated to
the build jails.




-
FreeBSD-11-current_amd64_root-on-zfs_RadeonKMS
--
View this message in context: 
http://freebsd.1045724.n5.nabble.com/Poudriere-Null-mount-existing-usr-src-folder-for-kernel-sources-tp5860808p5860844.html
Sent from the freebsd-ports mailing list archive at Nabble.com.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org