Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update _index.adoc #328

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions documentation/content/en/books/handbook/jails/_index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ In case of using UFS the man:cp[1] program can be used by executing the followin
[source,shell]
....
# mkdir /usr/local/jails/containers/thinjail
# cp -R /usr/local/jails/templates/13.2-RELEASE-skeleton /usr/local/jails/containers/thinjail
# cp -R /usr/local/jails/templates/13.2-RELEASE-skeleton/* /usr/local/jails/containers/thinjail
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what was wrong here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, I got it.. the directory is already created; ignore this.

....

Then create the directory in which the base template and the skeleton will be mounted:
Expand All @@ -625,7 +625,7 @@ thinjail {

# HOSTNAME/PATH
host.hostname = "${name}";
path = "/usr/local/jails/containers/${name}";
path = "/usr/local/jails/${name}-nullfs-base";

# NETWORK
ip4.addr = 192.168.1.153;
Expand All @@ -636,6 +636,13 @@ thinjail {
}
....

The name of a file in [.filename]#jail.conf.d# must be thinjail.conf. Otherwise you have to create also [.filename]#/etc/jail.conf#:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can add the reason here, such as the requirement for the file name to match the jail name, in this case, thinjail.conf.


[.programlisting]
....
.include "/etc/jail.conf.d/*.conf";
....

Then the create the [.filename]#/usr/local/jails/thinjail-nullfs-base.fstab# file as follows:

[.programlisting]
Expand Down