mkjail.sh

Check-in [712d436f0c]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Update README
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:712d436f0c02d4070dd5b7dffc760ac985605134a05cbce6abddbe9f953c62cd
User & Date: feld 2019-03-08 15:38:27
Context
2019-03-08
15:39
Numbering is hard check-in: cd874cb5a9 user: feld tags: master, trunk
15:38
Update README check-in: 712d436f0c user: feld tags: master, trunk
2018-10-31
16:33
Ensure new jails get updated automatically upon creation check-in: 7ce5612c9e user: feld tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to README.md.

7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
I'll clean it up soon. I promise.

# howto

This script assumes you're using ZFS. mkjail.sh should be in the same
root dir as everything else you create below. (yeah, i know...)

1. get mkjail.sh

2. make a dir for the version you want

    <pre>
    # mkdir 10.3-RELEASE
    </pre>

3. fetch the dists you need (edit mkjail.sh to configure the sets="" you want)

    <pre>
    # fetch -o 10.3-RELEASE/base.txz ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/10.3-RELEASE-RELEASE/base.txz
    </pre>

4. make a flavour if you want

    <pre>
    # mkdir -p flavours/default
    # mkdir flavours/default/etc
    # vi flavours/default/etc/resolv.conf
    </pre>

5. make your jail. The -j is the name you want your jail to be.

    <pre>
    # ./mkjail.sh -v 10.3-RELEASE -j testjail -f default
    Creating zroot/jails/testjail...
    Extracting base into /zroot/jails/testjail...
    Extracting doc into /zroot/jails/testjail...
    Extracting games into /zroot/jails/testjail...
    Extracting lib32 into /zroot/jails/testjail...
    Copying in our configs...
    







|

<
<
<
<
<
<
<
<
<
<
<
<
|


<
|
|


|


|







7
8
9
10
11
12
13
14
15












16
17
18

19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
I'll clean it up soon. I promise.

# howto

This script assumes you're using ZFS. mkjail.sh should be in the same
root dir as everything else you create below. (yeah, i know...)

1. clone this repo













2. make a flavour if you want

    <pre>

    # mkdir -p /var/db/mkjail/flavours/default/etc
    # vi /var/db/mkjail/flavours/default/etc/resolv.conf
    </pre>

3. make your jail. The -j is the name you want your jail to be.

    <pre>
    # ./src/bin/mkjail.sh create -v 10.3-RELEASE -j testjail -f default
    Creating zroot/jails/testjail...
    Extracting base into /zroot/jails/testjail...
    Extracting doc into /zroot/jails/testjail...
    Extracting games into /zroot/jails/testjail...
    Extracting lib32 into /zroot/jails/testjail...
    Copying in our configs...