Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 4f6b9d8

Browse files
committed
Use cbsd v12.0.4 from ports
1 parent fb33306 commit 4f6b9d8

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

scripts/configure_freebsd_ci_jail.sh

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,7 @@ jail_arch="i386"
99
jail_ver="11.2"
1010

1111
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
2313

2414
# determine uplink ip address
2515
# determine uplink iface
@@ -78,14 +68,6 @@ EOF
7868
echo "Initializing cbsd environment"
7969
env workdir=${cbsd_workdir} /usr/local/cbsd/sudoexec/initenv /usr/local/cbsd/share/initenv.conf
8070

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-
8971
echo "Creating ${jailName}"
9072
cbsd jcreate jconf=/tmp/${jailName}.jconf inter=0
9173
cbsd jailscp /etc/resolv.conf ${jailName}:/etc/resolv.conf

0 commit comments

Comments
 (0)