This repository was archived by the owner on Jul 24, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -9,17 +9,7 @@ jail_arch="i386"
9
9
jail_ver=" 11.2"
10
10
11
11
echo " Installing build dependencies for cbsd"
12
- pkg install -y libssh2 rsync sqlite3 git pkgconf
13
-
14
- echo " Clone and setup cbsd"
15
- git clone https://github.com/cbsd/cbsd.git /usr/local/cbsd --single-branch --branch v12.0.4 --depth 1
16
-
17
- cd /usr/local/etc/rc.d
18
- ln -sf /usr/local/cbsd/rc.d/cbsdd
19
- mkdir -p /usr/local/libexec/bsdconfig
20
- cd /usr/local/libexec/bsdconfig
21
- ln -s /usr/local/cbsd/share/bsdconfig/cbsd
22
- pw useradd cbsd -s /bin/sh -d ${cbsd_workdir} -c " cbsd user"
12
+ pkg install -y cbsd
23
13
24
14
# determine uplink ip address
25
15
# determine uplink iface
78
68
echo " Initializing cbsd environment"
79
69
env workdir=${cbsd_workdir} /usr/local/cbsd/sudoexec/initenv /usr/local/cbsd/share/initenv.conf
80
70
81
- echo " Writing 'FreeBSD-bases' configuration file"
82
- cat > ${cbsd_workdir} /etc/FreeBSD-bases.conf << EOF
83
- auto_baseupdate=0
84
- default_obtain_base_method="extract repo"
85
- default_obtain_base_extract_source="/usr/freebsd-dist/base.txz"
86
- default_obtain_base_repo_sources="https://bintray.com/am11/freebsd-dist/download_file?file_path=base-${jail_ver} -${jail_arch} .txz"
87
- EOF
88
-
89
71
echo " Creating ${jailName} "
90
72
cbsd jcreate jconf=/tmp/${jailName} .jconf inter=0
91
73
cbsd jailscp /etc/resolv.conf ${jailName} :/etc/resolv.conf
You can’t perform that action at this time.
0 commit comments