@@ -137,21 +137,30 @@ case "$TEST_CASE" in
137
137
" to-existing-root" )
138
138
SSH_USER=" root"
139
139
SSH_KEY_PUB_CONTENT=$( cat " ${SSH_KEY_PUB} " )
140
+ mkdir -p " ${TEMPDIR} /usr/share/containers/systemd"
141
+ cp files/caddy.container files/node_exporter.container " ${TEMPDIR} /usr/share/containers/systemd"
140
142
tee -a " $INSTALL_CONTAINERFILE " > /dev/null << EOF
143
+ COPY usr/ usr/
141
144
RUN mkdir -p /usr/etc-system/ && \
142
145
echo 'AuthorizedKeysFile /usr/etc-system/%u.keys' >> /etc/ssh/sshd_config.d/30-auth-system.conf && \
143
146
echo "$SSH_KEY_PUB_CONTENT " > /usr/etc-system/root.keys && \
144
147
chmod 0600 /usr/etc-system/root.keys && \
145
148
dnf -y install qemu-guest-agent && \
146
149
dnf clean all && \
147
- systemctl enable qemu-guest-agent
150
+ systemctl enable qemu-guest-agent && \
151
+ ln -s /usr/share/containers/systemd/caddy.container /usr/lib/bootc/bound-images.d/caddy.container && \
152
+ ln -s /usr/share/containers/systemd/node_exporter.container /usr/lib/bootc/bound-images.d/node_exporter.container
148
153
EOF
154
+ # logical bound image
155
+ LBI=" enabled"
149
156
;;
150
157
" to-disk" )
151
158
tee -a " $INSTALL_CONTAINERFILE " > /dev/null << EOF
152
159
RUN dnf -y install python3 cloud-init && \
153
160
dnf -y clean all
154
161
EOF
162
+ # LBI is disabled in to-disk test
163
+ LBI=" disabled"
155
164
;;
156
165
esac
157
166
@@ -264,6 +273,7 @@ ansible-playbook -v \
264
273
-e bootc_image=" $TEST_IMAGE_URL " \
265
274
-e image_label_version_id=" $REDHAT_VERSION_ID " \
266
275
-e kargs=" mitigations=on,nosmt,console=ttyS0,panic=0" \
276
+ -e lbi=" $LBI " \
267
277
playbooks/check-system.yaml
268
278
269
279
# Prepare upgrade containerfile
@@ -309,6 +319,7 @@ ansible-playbook -v \
309
319
-e image_label_version_id=" $REDHAT_VERSION_ID " \
310
320
-e upgrade=" true" \
311
321
-e kargs=" systemd.unified_cgroup_hierarchy=1,console=ttyS,panic=0" \
322
+ -e lbi=" $LBI " \
312
323
playbooks/check-system.yaml
313
324
314
325
# bootc rollback test
0 commit comments