User Tools

Site Tools


documentation:technical_docs:poudriere

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
documentation:technical_docs:poudriere [2024/11/18 19:06] – [Building the jail] olivierdocumentation:technical_docs:poudriere [2025/12/19 23:09] (current) – [The 6 minimum steps to build a poudriere firmware image] olivier
Line 45: Line 45:
   - Install poudriere and configure it: <code>sudo pkg install poudriere-devel   - Install poudriere and configure it: <code>sudo pkg install poudriere-devel
 echo "ZPOOL="`zpool list -H | cut -f1` | sudo tee -a /usr/local/etc/poudriere.conf</code> echo "ZPOOL="`zpool list -H | cut -f1` | sudo tee -a /usr/local/etc/poudriere.conf</code>
-  - Create a poudriere jail WITH a GENERIC kernel (by default kernel is not build & installed), here named "router":  <code>sudo poudriere jail -c -j router -v 14.2-RELEASE -K GENERIC</code>+  - Create a poudriere jail WITH a GENERIC kernel (by default kernel is not build & installed), here named "router":  <code>sudo poudriere jail -c -j router -v 15.0-RELEASE -K GENERIC</code>
   - Create a port-tree using "poudriere ports":<code>sudo poudriere ports -c -p router_ports</code>   - Create a port-tree using "poudriere ports":<code>sudo poudriere ports -c -p router_ports</code>
   - Generate list of ports to be build & added into the firmware image:<code>   - Generate list of ports to be build & added into the firmware image:<code>
Line 242: Line 242:
 </code> </code>
  
-There is now 2 sources ready patched: +There are now 2 sources ready patched: 
-  * /usr/local/BSDRP/BSDRP/FreeBSD/src (including BSDRP specific kernel configuration file) +  * obj/FreeBSD (including BSDRP specific kernel configuration file) 
-  * /usr/local/BSDRP/BSDRP/FreeBSD/ports +  * obj/ports
  
 <code> <code>
-poudriere jail -c -j BSDRPj -b -m src=/usr/local/BSDRP/BSDRP/FreeBSD/src -K amd64+poudriere jail -e poudriere.etc -c -j BSDRPj -b -m src=obj/FreeBSD -K amd64
 </code> </code>
 Command line details: Command line details:
Line 254: Line 253:
   * -c: create a jail   * -c: create a jail
   * -j: SHORT name for the jail (I can't use BSDRP-amd64-10.3R here because later it will generate a long directory name and long name aren't well supported)   * -j: SHORT name for the jail (I can't use BSDRP-amd64-10.3R here because later it will generate a long directory name and long name aren't well supported)
 +  * -e: Load all configurations files from ./poudriere.etc
   * -m src=: Path to the patched source branch we want to use   * -m src=: Path to the patched source branch we want to use
   * -K: The kernel configuration file (was copied here during patching BSDRP code tree)   * -K: The kernel configuration file (was copied here during patching BSDRP code tree)
Line 262: Line 262:
  
 <code> <code>
-poudriere ports -c -p BSDRPp -m null -M /usr/local/BSDRP/BSDRP/FreeBSD/ports+poudriere ports -e poudriere.etc -c -p BSDRPp -m null -M obj/ports
 </code> </code>
  
Line 269: Line 269:
 poudriere native role, we just give the jail name and port-tree name to use then the list of packages. poudriere native role, we just give the jail name and port-tree name to use then the list of packages.
 <code> <code>
-poudriere bulk -j BSDRPj -p BSDRPp -f /usr/local/etc/poudriere.d/BSDRP-pkglist+poudriere bulk -e poudriere.etc -j BSDRPj -p BSDRPp -f /usr/local/etc/poudriere.d/BSDRP-pkglist.common
 </code> </code>
  
documentation/technical_docs/poudriere.1731953194.txt.gz · Last modified: by olivier

Except where otherwise noted, content on this wiki is licensed under the following license: BSD 2-Clause
Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki