FreeBSD:Jails: Difference between revisions

From Wiki³
(Created page with "{{DISPLAYTITLE:FreeBSD Jails}} <pre><nowiki> :: install a jail cd /usr/src buildjail installjail /usr/jail/10_dev/ sudo /etc/rc.d/jail restart :: upgrade a jail cd /usr/src b...")
 
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:FreeBSD Jails}}
{{DISPLAYTITLE:FreeBSD Jails}}
{{UnderConstruction}}
<pre><nowiki>
<pre><nowiki>
:: install a jail
:: install a jail
Line 19: Line 21:
alias installjail      'sudo make installworld DESTDIR=\!:1 SRCCONF=/home/k/dotfiles/etc/jail-src.conf'
alias installjail      'sudo make installworld DESTDIR=\!:1 SRCCONF=/home/k/dotfiles/etc/jail-src.conf'
</nowiki></pre>
</nowiki></pre>
[[Category:FreeBSD]]

Revision as of 12:29, 1 February 2012


IconUNDER CONSTRUCTION: The document is currently being modified!
:: install a jail
cd /usr/src
buildjail
installjail /usr/jail/10_dev/
sudo /etc/rc.d/jail restart

:: upgrade a jail
cd /usr/src
buildjail
sudo mergemaster -piU -D /usr/jail/10_dev/
installjail /usr/jail/10_dev/
sudo mergemaster -iU -D /usr/jail/10_dev/
sudo /etc/rc.d/jail restart

## .cshrc aliases ##
alias buildjail         '/usr/bin/time -a -h -o ~/buildjail.benchmark make buildworld SRCCONF=/home/k/dotfiles/etc/jail-src.conf'
alias installjail       'sudo make installworld DESTDIR=\!:1 SRCCONF=/home/k/dotfiles/etc/jail-src.conf'