mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
Enable the FreeBSD-base repository in all of the /etc/pkg/FreeBSD.conf variants, and remove code from various install paths which enabled the repository via /usr/local/etc/pkg/repos/FreeBSD.conf. Relnotes: yes Differential Revision: https://reviews.freebsd.org/D60946
30 lines
1.2 KiB
Bash
30 lines
1.2 KiB
Bash
#! /bin/sh
|
|
|
|
# Build Open Container Initiative (OCI) container image suitable as a base for
|
|
# static-linked workloads. This contains mtree directories, SSL certificates and
|
|
# a few other config files.
|
|
|
|
OCI_BASE_IMAGE=
|
|
|
|
oci_image_build() {
|
|
local srcdir=${curdir}/..
|
|
local m=${workdir}/rootfs
|
|
mtree -deU -p $m/ -f ${srcdir}/etc/mtree/BSD.root.dist > /dev/null
|
|
mtree -deU -p $m/var -f ${srcdir}/etc/mtree/BSD.var.dist > /dev/null
|
|
mtree -deU -p $m/usr -f ${srcdir}/etc/mtree/BSD.usr.dist > /dev/null
|
|
mtree -deU -p $m/usr/include -f ${srcdir}/etc/mtree/BSD.include.dist > /dev/null
|
|
mtree -deU -p $m/usr/lib -f ${srcdir}/etc/mtree/BSD.debug.dist > /dev/null
|
|
install_packages ${abi} ${workdir} FreeBSD-zoneinfo
|
|
cp ${srcdir}/etc/master.passwd $m/etc
|
|
pwd_mkdb -p -d $m/etc $m/etc/master.passwd || return $?
|
|
cp ${srcdir}/etc/group $m/etc || return $?
|
|
# termcap.small is generated so we get it from OBJDIR - make sets our
|
|
# working directory to OBJDIR/release
|
|
cp ../etc/termcap/termcap.small $m/etc/termcap.small || return $?
|
|
cp ../etc/termcap/termcap.small $m/usr/share/misc/termcap || return $?
|
|
env DESTDIR=$m \
|
|
TRUSTPATH=${srcdir}/secure/caroot/trusted \
|
|
UNTRUSTPATH=${srcdir}/secure/caroot/untrusted \
|
|
certctl -c rehash
|
|
}
|