Skip to content

Commit 5641427

Browse files
committed
runner: use LIBGUESTFS_BACKEND=direct; drop qemu.conf edits
Reverts the qemu.conf security_driver manipulation from #1642 / #1644: it does not fix libguestfs over libvirt. Set LIBGUESTFS_BACKEND=direct for libguestfs tools. Reference: https://redhat.atlassian.net/browse/INSTALLER-4682
1 parent 2c9a885 commit 5641427

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

containers/runner/Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@ RUN dnf -y update && \
2424
openssh-clients && \
2525
dnf -y clean all
2626

27-
# Set security_driver = none in /etc/libvirt/qemu.conf when building the
28-
# kstest-runner image. The libvirt backend used by libguestfs otherwise fails
29-
# with "Security driver model 'selinux' is not available".
30-
RUN sed -i -E 's/^[[:space:]]*#?[[:space:]]*security_driver.*/security_driver = "none"/' /etc/libvirt/qemu.conf
31-
27+
# FIXME(workaround): LIBGUESTFS_BACKEND=direct — remove when fixed upstream.
28+
# https://redhat.atlassian.net/browse/INSTALLER-4682
3229
ENV APP_ROOT=/opt/kstest
3330
ENV PATH=${APP_ROOT}/bin:${PATH} \
3431
APP_DATA=${APP_ROOT}/data \
35-
KSTEST_USER=kstest
32+
KSTEST_USER=kstest \
33+
LIBGUESTFS_BACKEND=direct
3634

3735
RUN groupadd -g 1001 -r ${KSTEST_USER} -f && \
3836
useradd -u 1001 -r -g ${KSTEST_USER} -m -c "Kickstart test user" ${KSTEST_USER} && \

0 commit comments

Comments
 (0)