File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
kickstart-templates/includes Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -260,6 +260,15 @@ prepare_kickstart() {
260
260
exit 1
261
261
fi
262
262
263
+ # For bootc kickstart templates, make sure that commit references are
264
+ # fully qualified. Unqualified references are assumed to be served from
265
+ # the local mirror registry.
266
+ if [[ " ${template} " == * bootc* ]] ; then
267
+ if [ " $( dirname " ${boot_commit_ref} " ) " == " ." ] ; then
268
+ boot_commit_ref=" ${MIRROR_REGISTRY_URL} /${boot_commit_ref} "
269
+ fi
270
+ fi
271
+
263
272
mkdir -p " ${output_dir} "
264
273
for ifile in " ${KICKSTART_TEMPLATE_DIR} /${template} " " ${KICKSTART_TEMPLATE_DIR} " /includes/* .cfg ; do
265
274
local output_file
Original file line number Diff line number Diff line change 1
- # Configure support of pulling images both from a local mirror and remote registries.
2
- # Note: skopeo falls back to 'docker.io/library' prefix when specifying unqualified
3
- # image names. These need to be redirected to the local mirror location.
1
+ # Configure support of pulling images both from a local mirror and remote registries
4
2
%pre-install --log =/dev/console --erroronfail
5
3
6
4
mkdir -p /etc/containers/registries.conf.d
7
5
# Enable insecure registry access from the hypervisor to allow local image pull.
8
6
# See https://github.com/containers/bootc/blob/main/docs/src/registries-and-offline.md#insecure-registries
9
7
cat > /etc/containers/registries.conf.d/998-microshift-bootc-registry.conf <<' EOF'
10
8
[[registry] ]
11
- prefix = " docker.io/library "
9
+ prefix = " "
12
10
location = " REPLACE_BOOTC_REGISTRY_URL"
13
11
insecure = true
14
12
EOF
You can’t perform that action at this time.
0 commit comments