Skip to content

Commit

Permalink
docker: fix when running on RHEL-like systems
Browse files Browse the repository at this point in the history
QEMU can't successfully complete when the building process is executed
in a container (podman) on a RHEL system. To make it work is necessary
to disable the "remember_owner" option. It shouldn't harm on other
systems.

https://bugzilla.redhat.com/show_bug.cgi?id=1774373

Signed-off-by: Federico Vaga <[email protected]>
  • Loading branch information
Federico Vaga committed May 26, 2023
1 parent 4795b0f commit 88f2168
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/dockerfile/Dockerfile-devel.in
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ VOLUME [ "/var/cache/elbe" ]
RUN echo "%elbe ALL=(ALL:ALL) NOPASSWD: ALL" > /etc/sudoers.d/elbegrp
RUN chmod 0440 /etc/sudoers.d/elbegrp

# necessary since CS8 to have ELBE working (on C8 it was fine)
# https://bugzilla.redhat.com/show_bug.cgi?id=1774373
RUN echo 'remember_owner = 0' >> /etc/libvirt/qemu.conf
# run qemu as root
RUN echo 'user = "root"' >> /etc/libvirt/qemu.conf
RUN echo 'group = "root"' >> /etc/libvirt/qemu.conf
Expand Down
4 changes: 4 additions & 0 deletions contrib/dockerfile/Dockerfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ VOLUME [ "/var/cache/elbe" ]
RUN echo "%elbe ALL=(ALL:ALL) NOPASSWD: ALL" > /etc/sudoers.d/elbegrp
RUN chmod 0440 /etc/sudoers.d/elbegrp


# On RHEL family, the following option is necessary since CentOS Stream 8
# https://bugzilla.redhat.com/show_bug.cgi?id=1774373
RUN echo 'remember_owner = 0' >> /etc/libvirt/qemu.conf
# run qemu as root
RUN echo 'user = "root"' >> /etc/libvirt/qemu.conf
RUN echo 'group = "root"' >> /etc/libvirt/qemu.conf
Expand Down

0 comments on commit 88f2168

Please sign in to comment.