Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/make-oci-image.sh
| Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | install_packages() { | ||||
| if [ ! -d ${rootdir}/usr/share/keys/pkg/trusted ]; then | if [ ! -d ${rootdir}/usr/share/keys/pkg/trusted ]; then | ||||
| mkdir -p ${rootdir}/usr/share/keys/pkg/trusted | mkdir -p ${rootdir}/usr/share/keys/pkg/trusted | ||||
| fi | fi | ||||
| cp /usr/share/keys/pkg/trusted/* ${rootdir}/usr/share/keys/pkg/trusted | cp /usr/share/keys/pkg/trusted/* ${rootdir}/usr/share/keys/pkg/trusted | ||||
| # We install the packages and then remove repository metadata (keeping the | # We install the packages and then remove repository metadata (keeping the | ||||
| # metadata for what was installed). This trims more than 40Mb from the | # metadata for what was installed). This trims more than 40Mb from the | ||||
| # resulting image. | # resulting image. | ||||
| env IGNORE_OSVERSION=yes ABI=${abi} pkg --rootdir ${rootdir} --repo-conf-dir ${workdir}/repos \ | env IGNORE_OSVERSION=yes ABI=${abi} pkg --rootdir ${rootdir} --repo-conf-dir ${workdir}/repos \ | ||||
| install -yq "$@" || exit $? | install -yq -g "$@" || exit $? | ||||
| rm -rf ${rootdir}/var/db/pkg/repos | rm -rf ${rootdir}/var/db/pkg/repos | ||||
| } | } | ||||
| set_cmd() { | set_cmd() { | ||||
| local workdir=$1; shift | local workdir=$1; shift | ||||
| oci_cmd="$@" | oci_cmd="$@" | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 91 Lines • Show Last 20 Lines | |||||