Creating a FreeBSD pkg repository on FreeNAS

balanga

Patron
Joined
Jul 10, 2014
Messages
271
I'm thinking of setting up a local repository for FreeBSD pkgs on my LAN and would like to host that repository on FreeNAS.

If anyone has already done this could you suggest how to go about it?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
You could run Poudriere in a jail:

The jail needs the ZFS permission, i.e. Poudriere must be able to create and destroy datasets.

HTH,
Patrick
 

alexr

Explorer
Joined
Apr 14, 2016
Messages
59
You could run Poudriere in a jail:

The jail needs the ZFS permission, i.e. Poudriere must be able to create and destroy datasets.

I find that the mountpoints are prepended with a path for the FreeNAS system itself. There's an iocage issue for it that's not solved.

Does anyone have poudriere working in a jail on FreeNAS? If so, could you share your jail config?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
No time to try myself right now, but ... symlinks?
 

alexr

Explorer
Joined
Apr 14, 2016
Messages
59
No time to try myself right now, but ... symlinks?

Thanks for the suggestion!

poudriere.conf has ZPOOL=tank and ZROOTFS=/iocage/jails/poudriere/data.
I ended up with symlinks in the jail at /usr/local/poudriere -> /mnt/usr/local/poudriere and /mnt/mnt -> /mnt.

That gets poudriere to construct it's jails correctly.

Unfortunately, after that I get "file name too long" errors from mount. Possibly solved in TN12, but I already backed away from that until at least U1.

UPDATE: Got it to work completely by shortening to /mnt/p and just 'f' for the jail name. Hopefully TN12 will let me use sane names again when it's working for more use cases.
 
Last edited:
Top