First of all, I am new to FreeBSD and only play around with Linux a little in the past so please bear with me if I ask something stupid.
I am trying to learn how to uses ezjail and flavors. Right now I am trying to get the ezjail.flavour.example script to install some packages (e.g. sudo) when a jail is first started. In the “Postinstall” section of the example script there is:
This I am assuming is to install package
and
I have also tried adding the line to building pkg from a port first, this get
I have also tried adding a line to bootstrap pkg but never got that to work.
How do I get the ezjail.flavour.example script to install package when the jail is first started?
On a side question I can’t get the script to install
That is adding the above line does not seem to work, however I can get this method to work for other ports. Does anyone know why this maybe?
I am trying to learn how to uses ezjail and flavors. Right now I am trying to get the ezjail.flavour.example script to install some packages (e.g. sudo) when a jail is first started. In the “Postinstall” section of the example script there is:
# pkg_add -r pico
This I am assuming is to install package
pico
. However, it is my understanding that pkg_add
has been replaced with pkg install
. I have tried adding both lines to the script to install sudo
and other packages with no luck. pkg_add -r sudo
and
pkg install sudo
I have also tried adding the line to building pkg from a port first, this get
pkg install
but no sudo
.
Code:
cd /usr/ports/ports-mgmt/pkg/ && make install clean
pkg install sudo
I have also tried adding a line to bootstrap pkg but never got that to work.
How do I get the ezjail.flavour.example script to install package when the jail is first started?
On a side question I can’t get the script to install
sudo
from ports. cd /usr/ports/security/sudo/ && make install clean
That is adding the above line does not seem to work, however I can get this method to work for other ports. Does anyone know why this maybe?