Skip to content

Commit 9ddd584

Browse files
committed
cmd-build-with-buildah: add yumrepos support
If there's a yumrepos source, hook that up to the build so that it has access to the repo contents and the contentset. Also just mount in `/etc/pki/ca-trust` because the repos may require a cert.
1 parent d208a64 commit 9ddd584

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/cmd-build-with-buildah

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ build_with_buildah() {
107107
set -- "$@" --label fedora-coreos.stream="$stream"
108108
fi
109109

110+
if [ -e "src/yumrepos/$variant.repo" ]; then
111+
set -- "$@" --secret id=yumrepos,src="$(realpath "src/yumrepos/$variant.repo")" \
112+
--secret id=contentsets,src="$(realpath src/yumrepos/content_sets.yaml)" \
113+
-v /etc/pki/ca-trust:/etc/pki/ca-trust:ro
114+
fi
115+
110116
if [ -n "$DIRECT" ]; then
111117
# turn on layer caching in the direct case; it wouldn't hurt in the
112118
# supermin path, but it'd be a waste of space on the rootfs

0 commit comments

Comments
 (0)